示例#1
0
        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);

		}
示例#4
0
        public override void SetImageResource(int resId)
        {
            var inputBitmap = Utils.DrawableToBitmap(Resources.GetDrawable(resId));

            var drawable = new CircleDrawable(inputBitmap);

            base.SetImageDrawable(drawable);
        }
示例#5
0
        public override void SetImageBitmap(Android.Graphics.Bitmap bm)
        {
            var drawable = new CircleDrawable(bm);

            base.SetImageDrawable(drawable);
        }
		public override void SetImageDrawable(Drawable drawable)
		{
			var inputBitmap = Utils.DrawableToBitmap(drawable);
			var drawable2 = new CircleDrawable(inputBitmap);
			base.SetImageDrawable(drawable2);
		}