9 std::vector<SkPMColor> storage;
10 storage.resize(
w *
h);
12 for (
int y = 0;
y <
h; ++
y) {
14 for (
int x = 0;
x <
w; ++
x) {
15 int a = 0xFF * (
x +
y) / (
w - 1 +
h - 1);
17 SkDebugf(
"0x%08x%c", storage[
x +
y *
w],
x ==
w - 1 ?
'\n' :
' ');
22 for (
int y = 0;
y <
h; ++
y) {
24 for (
int x = 0;
x <
w; ++
x) {
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
static SkPMColor SkPackARGB32(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
SkColor getColor(int x, int y) const
#define REG_FIDDLE(NAME, W, H, TEXT, I)
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)