8 for (
int y = 0;
y <
bitmap.height(); ++
y) {
10 *
bitmap.getAddr8(
x,
y) = (2 *
x + 2 *
y) & 0xFF;
14 paint.setColor(0xFF00FF00);
15 canvas->
clear(0xFF000000);
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void clear(SkColor color)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
REG_FIDDLE(draw_a8_bitmap, 256, 256, false, 3)
SkSamplingOptions(SkFilterMode::kLinear))
static SkImageInfo MakeA8(int width, int height)