oak.transformation
Class ImageScale

java.lang.Object
  extended by oak.transformation.ImageScale
All Implemented Interfaces:
ImageTransformation

public class ImageScale
extends Object
implements ImageTransformation

User: mlake Date: 12/9/11 Time: 5:54 PM


Constructor Summary
ImageScale(int maxWidth, int maxHeight)
          Scale the image proportionally to the bounds of the given max width and height.
 
Method Summary
 String fingerprint()
           
 android.graphics.Bitmap transform(android.graphics.Bitmap image)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageScale

public ImageScale(int maxWidth,
                  int maxHeight)
Scale the image proportionally to the bounds of the given max width and height. This works great when you're trying to use really large images for thumbnails. Rather than caching the full image, this transformation will be cached instead, making load times much faster.

Parameters:
maxWidth -
maxHeight -
Method Detail

transform

public android.graphics.Bitmap transform(android.graphics.Bitmap image)
Specified by:
transform in interface ImageTransformation

fingerprint

public String fingerprint()
Specified by:
fingerprint in interface ImageTransformation


Copyright © 2011-2012. All Rights Reserved.