canvas.scale(sx, sy) setup the canvas to perform scaling on any
subsequent draw call.
To create a new bitmap that is a scale of another one... (pseudo code,
not tested or compiled)
SkBitmap scale_bitmap(const SkBitmap& src, float sx, float sy) {
int width = (int)round(src.width() * sx);
int height = (int)round(src.height() * sy);
SkBitmap dst;
dst.setConfig(src.config(), width, height);
dst.allocPixels();
dst.eraseColor(0);
// canvas will draw into dst, capturing the scaled version of src
SkCanvas canvas(dst);
canvas.scale(sx, sy);
canvas.drawBitmap(src, 0, 0, NULL);
return dst;