com.nostra13.universalimageloader.core.display
Class RoundedBitmapDisplayer

java.lang.Object
  extended by com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer
All Implemented Interfaces:
BitmapDisplayer

public class RoundedBitmapDisplayer
extends java.lang.Object
implements BitmapDisplayer

Displays bitmap with rounded corners.
NOTE: New Bitmap object is created for displaying. So this class needs more memory and can cause OutOfMemoryError.

Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com)

Constructor Summary
RoundedBitmapDisplayer(int roundPixels)
           
 
Method Summary
 android.graphics.Bitmap display(android.graphics.Bitmap bitmap, android.widget.ImageView imageView)
          Display bitmap in ImageView.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundedBitmapDisplayer

public RoundedBitmapDisplayer(int roundPixels)
Method Detail

display

public android.graphics.Bitmap display(android.graphics.Bitmap bitmap,
                                       android.widget.ImageView imageView)
Description copied from interface: BitmapDisplayer
Display bitmap in ImageView. Incoming bitmap can be changed any way before displaying. Displayed bitmap should be returned.

Specified by:
display in interface BitmapDisplayer
Parameters:
bitmap - Source bitmap
imageView - Image view
Returns:
Bitmap which was displayed in ImageView


Copyright © 2011-2013. All Rights Reserved.