public override void SetImageDrawable(Drawable drawable) { var inputBitmap = Utils.DrawableToBitmap(drawable); var drawable2 = new CircleDrawable(inputBitmap); base.SetImageDrawable(drawable2); }
public override void SetImageResource(int resId) { var inputBitmap = Utils.DrawableToBitmap(Resources.GetDrawable(resId)); var drawable = new CircleDrawable(inputBitmap); base.SetImageDrawable(drawable); }
public override void SetImageBitmap(Android.Graphics.Bitmap bm) { var drawable = new CircleDrawable(bm); base.SetImageDrawable(drawable); }
public override void SetImageDrawable(Drawable drawable) { if (drawable == null) { return; } var inputBitmap = Utils.DrawableToBitmap(drawable); var drawable2 = new CircleDrawable(inputBitmap); base.SetImageDrawable(drawable2); }