Code example for ImageView.ScaleType

Methods: ordinal

0
 * @see ScaleType#CENTER_INSIDE 
 * @see ScaleType#FIT_XY 
 * @author Cyril Mottier 
 * @author kennydude 
 */ 
public class ScaleImageProcessor implements ImageProcessor { 
 
    private int mWidth;
    private int mHeight;
    private ScaleType mScaleType;
    private final Matrix mMatrix = new Matrix();
 
    private final RectF mTempSrc = new RectF();
    private final RectF mTempDst = new RectF();
 
    public ScaleImageProcessor(int width, int height, ScaleType scaleType) {
        mWidth = width;
        mHeight = height;
        mScaleType = scaleType;
    }