Home
last modified time | relevance | path

Searched refs:drawString (Results 1 – 25 of 410) sorted by relevance

12345678910>>...17

/external/skia/gm/
Dcolorwheel.cpp54 canvas->drawString("R", 8.0f, 20.0f, font, SkPaint(SkColors::kRed));
55 canvas->drawString("G", 24.0f, 20.0f, font, SkPaint(SkColors::kGreen));
56 canvas->drawString("B", 40.0f, 20.0f, font, SkPaint(SkColors::kBlue));
57 canvas->drawString("C", 56.0f, 20.0f, font, SkPaint(SkColors::kCyan));
58 canvas->drawString("M", 72.0f, 20.0f, font, SkPaint(SkColors::kMagenta));
59 canvas->drawString("Y", 88.0f, 20.0f, font, SkPaint(SkColors::kYellow));
60 canvas->drawString("K", 104.0f, 20.0f, font, SkPaint(SkColors::kBlack));
Dgradtext.cpp71 canvas->drawString("I", 0, 100, font, paint); in onDraw()
87 canvas->drawString("Normal Fill Text", 0, 50, font, paint); in onDraw()
89 canvas->drawString("Normal Stroke Text", 0, 100, font, paint); in onDraw()
95 canvas->drawString("Gradient Fill Text", 0, 150, font, paint); in onDraw()
97 canvas->drawString("Gradient Stroke Text", 0, 200, font, paint); in onDraw()
125 canvas->drawString("When in the course of human events", 0, 0, font, paint);
Ddaa.cpp28 canvas->drawString("Should be a green square with no red showing through.",
47 canvas->drawString("Adjacent rects, two draws. Blue then green, no red?",
69 canvas->drawString("Adjacent rects, wound together. All green?",
88 canvas->drawString("Adjacent rects, wound opposite. All green?",
107 canvas->drawString("One poly, wound opposite. All green?",
/external/skia/docs/examples/
DUnpremulBugs.cpp43 canvas->drawString("Premul", 220, 20, font, paint); in draw()
44 canvas->drawString("Unpremul", 220, 70, font, paint); in draw()
45 canvas->drawString("Gray", 5, 120, font, paint); in draw()
46 canvas->drawString("White", 55, 120, font, paint); in draw()
47 canvas->drawString("Gray", 115, 120, font, paint); in draw()
48 canvas->drawString("White", 165, 120, font, paint); in draw()
50 canvas->drawString("2x2", 40, 150, font, paint); in draw()
51 canvas->drawString("1x1", 150, 150, font, paint); in draw()
D50_percent_gray.cpp25 canvas->drawString("BW Dither", 0, 125, font, black); in draw()
33 canvas->drawString("Scaled Dither", 0, 125, font, black); in draw()
41 drawString(canvas,"Blend", 0, 125, font, black); in draw()
47 canvas->drawString("0xFFBCBCBC", 0, 125, font, black); in draw()
53 canvas->drawString("0xFF808080", 0, 125, font, black); in draw()
DPreMultiplyARGB.cpp9 canvas->drawString("Unpremultiplied:", 20, 20, SkPaint());
10 canvas->drawString("alpha=160 red=128 green=160 blue=192", 20, 40, SkPaint());
11 canvas->drawString("Premultiplied:", 20, 80, SkPaint());
16 canvas->drawString(str.c_str(), 20, 100, SkPaint());
DPath_arcTo_2_b.cpp34 canvas->drawString("(x0, y0)", pts[0].fX, pts[0].fY - 7, textPaint);
35 canvas->drawString("(x1, y1)", pts[1].fX + 5, pts[1].fY, textPaint);
36 canvas->drawString("(x2, y2)", pts[2].fX, pts[2].fY + 15, textPaint);
37 canvas->drawString("radius", center.fX + 15, center.fY + 25, textPaint);
38 canvas->drawString("radius", center.fX - 5, center.fY - 20, textPaint);
DPath_arcTo_2_a.cpp35 canvas->drawString("(x0, y0)", pts[0].fX - 5, pts[0].fY, textPaint);
36 canvas->drawString("(x1, y1)", pts[1].fX + 5, pts[1].fY, textPaint);
37 canvas->drawString("(x2, y2)", pts[2].fX, pts[2].fY + 15, textPaint);
38 canvas->drawString("radius", center.fX + 15, center.fY + 25, textPaint);
39 canvas->drawString("radius", center.fX - 3, center.fY - 16, textPaint);
DPreMultiplyColor.cpp10 canvas->drawString("Unpremultiplied:", 20, 20, SkPaint());
15 canvas->drawString(str.c_str(), 20, 40, SkPaint());
16 canvas->drawString("Premultiplied:", 20, 80, SkPaint());
21 canvas->drawString(str.c_str(), 20, 100, SkPaint());
DSkPath_cubicTo_example.cpp50 canvas->drawString("a", a.x(), a.y(), font, textPaint); in draw()
51 canvas->drawString("b", b.x(), b.y(), font, textPaint); in draw()
52 canvas->drawString("c", c.x() - 20, c.y(), font, textPaint); in draw()
53 canvas->drawString("d", d.x(), d.y(), font, textPaint); in draw()
DText_Size.cpp9 canvas->drawString("12 point", 10, 20, paint);
11 canvas->drawString("24 point", 10, 60, paint);
13 canvas->drawString("48 point", 10, 120, paint);
DText_Skew_X.cpp12 canvas->drawString("right-leaning", 10, 100, paint);
14 canvas->drawString("normal", 10, 60, paint);
16 canvas->drawString("left-leaning", 10, 20, paint);
DText_Scale_X.cpp12 canvas->drawString("narrow", 10, 20, paint);
14 canvas->drawString("normal", 10, 60, paint);
16 canvas->drawString("wide", 10, 100, paint);
DFake_Bold.cpp11 canvas->drawString("OjYy_-", 10, 35, paint);
13 canvas->drawString("OjYy_-", 10, 75, paint);
18 canvas->drawString("OjYy_-", 10, 115, paint);
Dgamma_mask_filter.cpp13 canvas->drawString(text, 16, 80, font, paint); in draw()
16 canvas->drawString(text, 16, 160, font, paint); in draw()
19 canvas->drawString(text, 16, 240, font, paint); in draw()
DCanvas_skew.cpp12 canvas->drawString("A1", 0, 0, font, paint); in draw()
17 canvas->drawString("A1", 0, 0, font, paint); in draw()
21 canvas->drawString("A1", 0, 0, font, paint); in draw()
DSurface_MakeFromBackendTexture.cpp12 canvas->drawString("GPU only!", 20, 40, font, paint); in draw()
17 canvas->drawString("Direct Context only!", 20, 40, font, paint); in draw()
30 surfaceCanvas->drawString("GPU rocks!", 20, 40, font, paint); in draw()
DRGBToHSV.cpp15 canvas->drawString(("h: " + std::to_string(hsv[0]).substr(0, 6)).c_str(), 27, 45, SkPaint());
16 canvas->drawString(("s: " + std::to_string(hsv[1]).substr(0, 6)).c_str(), 27, 65, SkPaint());
17 canvas->drawString(("v: " + std::to_string(hsv[2]).substr(0, 6)).c_str(), 27, 85, SkPaint());
/external/skqp/gm/
Dcolorwheel.cpp48 canvas->drawString("R", 8.0f, 20.0f, font, paint);
50 canvas->drawString("G", 24.0f, 20.0f, font, paint);
52 canvas->drawString("B", 40.0f, 20.0f, font, paint);
54 canvas->drawString("C", 56.0f, 20.0f, font, paint);
56 canvas->drawString("M", 72.0f, 20.0f, font, paint);
58 canvas->drawString("Y", 88.0f, 20.0f, font, paint);
60 canvas->drawString("K", 104.0f, 20.0f, font, paint);
Dgradtext.cpp61 canvas->drawString("I", 0, 100, font, paint); in onDraw()
82 canvas->drawString("Normal Fill Text", 0, 50, font, paint); in onDraw()
84 canvas->drawString("Normal Stroke Text", 0, 100, font, paint); in onDraw()
90 canvas->drawString("Gradient Fill Text", 0, 150, font, paint); in onDraw()
92 canvas->drawString("Gradient Stroke Text", 0, 200, font, paint); in onDraw()
124 canvas->drawString("When in the course of human events", 0, 0, font, paint);
Dgamma.cpp64 auto drawString = [&](const char str[], SkScalar x, SkScalar y) { in __anonb8714d360202() variable
70 drawString(label, 0, sz + font.getSpacing()); in __anonb8714d360302()
72 drawString(label2, 0, sz + 2 * font.getSpacing()); in __anonb8714d360302()
79 drawString(label, 0, sz + font.getSpacing()); in __anonb8714d360402()
92 drawString(srcText.c_str(), 0, sz + font.getSpacing()); in __anonb8714d360502()
94 drawString(modeName, 0, sz + 2 * font.getSpacing()); in __anonb8714d360502()
95 drawString(dstText.c_str(), 0, sz + 3 * font.getSpacing()); in __anonb8714d360502()
/external/skqp/tests/
DPDFTaggedTest.cpp111 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
117 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
123 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
128 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
133 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
138 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
143 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
153 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
160 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
DDrawTextTest.cpp91 drawTextCanvas.drawString("A", point.fX, point.fY, font, paint); in DEF_TEST()
100 drawDashedTextCanvas.drawString("A", point.fX, point.fY, font, paint); in DEF_TEST()
118 canvas->drawString("a", +x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
119 canvas->drawString("a", -x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
122 canvas->drawString("a", 0.0f, +y, SkFont(), SkPaint()); in DEF_TEST()
123 canvas->drawString("a", 0.0f, -y, SkFont(), SkPaint()); in DEF_TEST()
160 canvas->drawString("Hamburgefons", 10, 10, font, SkPaint()); in DEF_TEST()
/external/skia/tests/
DDrawTextTest.cpp93 drawTextCanvas.drawString("A", point.fX, point.fY, font, paint); in DEF_TEST()
102 drawDashedTextCanvas.drawString("A", point.fX, point.fY, font, paint); in DEF_TEST()
120 canvas->drawString("a", +x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
121 canvas->drawString("a", -x, 0.0f, SkFont(), SkPaint()); in DEF_TEST()
124 canvas->drawString("a", 0.0f, +y, SkFont(), SkPaint()); in DEF_TEST()
125 canvas->drawString("a", 0.0f, -y, SkFont(), SkPaint()); in DEF_TEST()
162 canvas->drawString("Hamburgefons", 10, 10, font, SkPaint()); in DEF_TEST()
177 canvas->drawString( in DEF_TEST()
DPDFTaggedTest.cpp116 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
122 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
128 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
133 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
138 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
143 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
148 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
158 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()
173 canvas->drawString(message, 0, 0, font, paint); in DEF_TEST()

12345678910>>...17