fSampleSize, colorType, false)) {
return "Cannot decode (full) region.";
}
- if (colorType != bitmap.colorType()) {
- return Error::Nonfatal("Cannot convert to color type.");
- }
canvas->drawBitmap(bitmap, 0, 0);
return "";
}
decodeTop, decodeWidth, decodeHeight), fSampleSize, colorType, false)) {
return "Cannot decode region.";
}
- if (colorType != bitmap.colorType()) {
- return Error::Nonfatal("Cannot convert to color type.");
- }
canvas->drawBitmapRect(bitmap,
SkRect::MakeXYWH((SkScalar) scaledBorder, (SkScalar) scaledBorder,