com.nostra13.universalimageloader.core.display
Class RoundedVignetteBitmapDisplayer
java.lang.Object
com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer
com.nostra13.universalimageloader.core.display.RoundedVignetteBitmapDisplayer
- All Implemented Interfaces:
- BitmapDisplayer
public class RoundedVignetteBitmapDisplayer
- extends RoundedBitmapDisplayer
Can display bitmap with rounded corners and vignette effect. This implementation works only with ImageViews wrapped
in ImageViewAware.
This implementation is inspired by
Romain Guy's article. It rounds images using custom drawable drawing. Original bitmap isn't changed.
If this implementation doesn't meet your needs then consider
this project for usage.
- Since:
- 1.9.1
- Author:
- Sergey Tarasevich (nostra13[at]gmail[dot]com)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoundedVignetteBitmapDisplayer
public RoundedVignetteBitmapDisplayer(int cornerRadiusPixels,
int marginPixels)
display
public void display(android.graphics.Bitmap bitmap,
ImageAware imageAware,
LoadedFrom loadedFrom)
- Description copied from interface:
BitmapDisplayer
- Displays bitmap in
ImageAware
.
NOTE: This method is called on UI thread so it's strongly recommended not to do any heavy work in it.
- Specified by:
display
in interface BitmapDisplayer
- Overrides:
display
in class RoundedBitmapDisplayer
- Parameters:
bitmap
- Source bitmapimageAware
- Image aware view to
display BitmaploadedFrom
- Source of loaded image
Copyright © 2011-2014. All Rights Reserved.