@Override
 public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
   if (!(imageAware instanceof ImageViewAware)) {
     throw new IllegalArgumentException(
         "ImageAware should wrap ImageView. ImageViewAware is expected.");
   }
   Bitmap roundedBitmap = roundCorners(bitmap, (ImageViewAware) imageAware, roundPixels);
   imageAware.setImageBitmap(roundedBitmap);
 }
Esempio n. 2
0
 @Override
 public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
   imageAware.setImageBitmap(bitmap);
 }