Code example for BitmapRegionDecoder

Methods: getWidth

0
            return null; 
        } 
        return null; 
    } 
    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;