C++程序  |  8行  |  256 B

#include "SkBitmapRegionDecoder.h"

bool SkBitmapRegionDecoder::decodeRegion(SkBitmap* bitmap, SkIRect rect,
        SkBitmap::Config pref, int sampleSize) {
    fDecoder->setSampleSize(sampleSize);
    return fDecoder->decodeRegion(bitmap, rect, pref);
}