@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);
 }
示例#2
0
 @Override
 public void display(Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom) {
   imageAware.setImageBitmap(bitmap);
 }