Ejemplo n.º 1
0
        public override void SetImageDrawable(Drawable drawable)
        {
            var inputBitmap = Utils.DrawableToBitmap(drawable);
            var drawable2   = new CircleDrawable(inputBitmap);

            base.SetImageDrawable(drawable2);
        }
Ejemplo n.º 2
0
		public override void SetImageResource(int resId)
		{
			var inputBitmap = Utils.DrawableToBitmap(Resources.GetDrawable(resId));

			var drawable = new CircleDrawable(inputBitmap);
			base.SetImageDrawable(drawable);
		}
Ejemplo n.º 3
0
		public override void SetImageBitmap(Android.Graphics.Bitmap bm)
		{

			var drawable = new CircleDrawable(bm);
			base.SetImageDrawable(drawable);

		}
Ejemplo n.º 4
0
        public override void SetImageResource(int resId)
        {
            var inputBitmap = Utils.DrawableToBitmap(Resources.GetDrawable(resId));

            var drawable = new CircleDrawable(inputBitmap);

            base.SetImageDrawable(drawable);
        }
Ejemplo n.º 5
0
		public override void SetImageDrawable(Drawable drawable)
		{
		    if (drawable == null)
		    {
		        return;
		    }

		    var inputBitmap = Utils.DrawableToBitmap(drawable);
			var drawable2 = new CircleDrawable(inputBitmap);
			base.SetImageDrawable(drawable2);
		}
Ejemplo n.º 6
0
        public override void SetImageBitmap(Android.Graphics.Bitmap bm)
        {
            var drawable = new CircleDrawable(bm);

            base.SetImageDrawable(drawable);
        }