public class

ScaleImageProcessor

extends Object
implements ImageProcessor
java.lang.Object
   ↳ greendroid.image.ScaleImageProcessor

Class Overview

Scales Bitmaps according to a given width and height. The scaling method may be one of the ScaleType values

Summary

Public Constructors
ScaleImageProcessor(int width, int height, ImageView.ScaleType scaleType)
Create a new ScaleImageProcessor.
Public Methods
Bitmap processImage(Bitmap bitmap)
Called whenever the bitmap need to be processed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface greendroid.image.ImageProcessor

Public Constructors

public ScaleImageProcessor (int width, int height, ImageView.ScaleType scaleType)

Create a new ScaleImageProcessor.

Parameters
width The width of the final surrounding box
height The height of the final surrounding box
scaleType The ScaleType method used to scale the original Bitmap

Public Methods

public Bitmap processImage (Bitmap bitmap)

Called whenever the bitmap need to be processed. The returned may have been modified or completely different.

Parameters
bitmap The Bitmap to process
Returns
  • A Bitmap that has been modified