public void Display(Bitmap bitmap, IImageAware imageAware, LoadedFrom loadedFrom)
        {
            if (!(imageAware is ImageViewAware))
            {
                throw new ArgumentException("ImageAware should wrap ImageView. ImageViewAware is expected.");
            }
            Bitmap roundedBitmap = RoundCorners(bitmap, (ImageViewAware)imageAware, roundPixels);

            imageAware.SetImageBitmap(roundedBitmap);
        }
 public void Display(Bitmap bitmap, IImageAware imageAware, LoadedFrom loadedFrom)
 {
     if (!(imageAware is ImageViewAware))
     {
         throw new ArgumentException("ImageAware should wrap ImageView. ImageViewAware is expected.");
     }
     Bitmap roundedBitmap = RoundCorners(bitmap, (ImageViewAware)imageAware, roundPixels);
     imageAware.SetImageBitmap(roundedBitmap);
 }
コード例 #3
0
 public override void Display(Bitmap bitmap, IImageAware imageAware, LoadedFrom p2)
 {
     base.Display(bitmap, imageAware, p2);
     imageAware.SetImageDrawable(new CircleDrawable(bitmap, margin));
 }