com.nostra13.universalimageloader.core.display
Class RoundedVignetteBitmapDisplayer

java.lang.Object
  extended by com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer
      extended by 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)

Nested Class Summary
protected static class RoundedVignetteBitmapDisplayer.RoundedVignetteDrawable
           
 
Nested classes/interfaces inherited from class com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer
RoundedBitmapDisplayer.RoundedDrawable
 
Field Summary
 
Fields inherited from class com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer
cornerRadius, margin
 
Constructor Summary
RoundedVignetteBitmapDisplayer(int cornerRadiusPixels, int marginPixels)
           
 
Method Summary
 void display(android.graphics.Bitmap bitmap, ImageAware imageAware, LoadedFrom loadedFrom)
          Displays bitmap in ImageAware.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundedVignetteBitmapDisplayer

public RoundedVignetteBitmapDisplayer(int cornerRadiusPixels,
                                      int marginPixels)
Method Detail

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 bitmap
imageAware - Image aware view to display Bitmap
loadedFrom - Source of loaded image


Copyright © 2011-2014. All Rights Reserved.