Definition at line 27 of file textblobtransforms.cpp.
◆ TextBlobTransforms()
skiagm::TextBlobTransforms::TextBlobTransforms |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize skiagm::TextBlobTransforms::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::TextBlobTransforms::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void skiagm::TextBlobTransforms::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 67 of file textblobtransforms.cpp.
67 {
68
70
72
75
76
77
78
79
80
83
94
95
110
111
112 canvas->
translate(- 3 * xOffset, 3 * yOffset);
113 canvas->
scale(1.5f, 1.5f);
116 canvas->
scale(.25f, .25f);
119 canvas->
scale(3.f, 2.f);
121
122
125 canvas->
scale(.33f, .5f);
127
130 canvas->
scale(1.2f, 1.1f);
132
135 canvas->
scale(1.1f, 1.2f);
137
140 canvas->
scale(.95f, 1.1f);
142
145 canvas->
scale(1.3f, .7f);
147
150 canvas->
scale(.8f, 1.1f);
152
155 canvas->
scale(1.f, 5.f);
157
160 canvas->
scale(5.f, 1.f);
162 }
constexpr SkColor SK_ColorGRAY
#define SkScalarCeilToScalar(x)
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void rotate(SkScalar degrees)
void scale(SkScalar sx, SkScalar sy)
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
const SkRect & bounds() const
Optional< SkRect > bounds
◆ onOnceBeforeDraw()
void skiagm::TextBlobTransforms::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 33 of file textblobtransforms.cpp.
33 {
35
36
39 const char*
text =
"A";
40
44
45
50
53
54
58
59
61 }
@ kUTF8
uses bytes to represent UTF-8 or ASCII
@ kAlias
no transparent pixels on glyph edges
font
Font Metadata and Metrics.
The documentation for this class was generated from the following file: