Code example for BitmapRegionDecoder

Methods: getHeight

0
    } 
    public int getWidth() { 
        return mDecoder.getWidth();
    } 
    public int getHeight() { 
        return mDecoder.getHeight();
    } 
    public Bitmap decodeRegion(Rect wantRegion, BitmapFactory.Options options) {
        return mDecoder.decodeRegion(wantRegion, options);
    } 
} 
 
class DumbBitmapRegionDecoder implements SimpleBitmapRegionDecoder { 
    Bitmap mBuffer;
    Canvas mTempCanvas;
    Paint mTempPaint;
    private DumbBitmapRegionDecoder(Bitmap b) {
        mBuffer = b;
    } 
    public static DumbBitmapRegionDecoder newInstance(String pathName) {
        Bitmap b = BitmapFactory.decodeFile(pathName);