5 {
15 size_t rowBytes;
18 if (access) {
20 int v = imageInfo.
width();
21 int rowWords = rowBytes / sizeof(uint32_t);
22 for (
int y = 0;
y <
h; ++
y) {
23 int newY = (
y -
h / 2) * 2 +
h / 2;
24 if (newY < 0 || newY >=
h) {
25 continue;
26 }
27 for (
int x = 0;
x < v; ++
x) {
28 int newX = (
x - v / 2) * 2 + v / 2;
29 if (newX < 0 || newX >= v) {
30 continue;
31 }
34 }
35 }
36 }
37 }
39}
40}
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
int saveLayerAlpha(const SkRect *bounds, U8CPU alpha)
void clear(SkColor color)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
void * accessTopLayerPixels(SkImageInfo *info, size_t *rowBytes, SkIPoint *origin=nullptr)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
sk_sp< SkFontMgr > fontMgr
font
Font Metadata and Metrics.
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)