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 override void Display(Bitmap bitmap, IImageAware imageAware, LoadedFrom p2) { base.Display(bitmap, imageAware, p2); imageAware.SetImageDrawable(new CircleDrawable(bitmap, margin)); }