Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
Bitmap_peekPixels |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
true |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file Bitmap_peekPixels.cpp.
4 {
12 offscreen.drawString(
"?", 0, 10,
font,
paint);
14 if (
bitmap.peekPixels(&pixmap)) {
17 for (
int y = 0;
y <
bitmap.height(); ++
y) {
18 for (
int x = 0;
x <
bitmap.width(); ++
x) {
19 SkDebugf(
"%c", *pixels++ == pmWhite ?
'-' :
'x');
20 }
22 }
23 }
24}
25}
constexpr SkColor SK_ColorWHITE
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
const uint32_t * addr32() const
sk_sp< SkFontMgr > fontMgr
font
Font Metadata and Metrics.
static SkImageInfo MakeN32Premul(int width, int height)