Example #1
0
        public override void SetImageResource(int resId)
        {
            var inputBitmap = Utils.DrawableToBitmap(Resources.GetDrawable(resId));

            var drawable = new CircleDrawable(inputBitmap);

            base.SetImageDrawable(drawable);
        }
Example #2
0
        public override void SetImageDrawable(Drawable drawable)
        {
            if (drawable == null)
            {
                return;
            }

            var inputBitmap = Utils.DrawableToBitmap(drawable);
            var drawable2   = new CircleDrawable(inputBitmap);

            base.SetImageDrawable(drawable2);
        }
Example #3
0
        public override void SetImageBitmap(Android.Graphics.Bitmap bm)
        {
            var drawable = new CircleDrawable(bm);

            base.SetImageDrawable(drawable);
        }