Code example for BitmapRegionDecoder

Methods: getHeight

    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) {
Connect your IDE to all the code out there  Get Codota for Java