|
◆ drawTextAt() [1/2]
virtual float GiCanvas::drawTextAt |
( |
const char * |
text, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
h, |
|
|
int |
align, |
|
|
float |
angle |
|
) |
| |
|
pure virtual |
Draw text in one line.
Uses the current font and fill color to draw the text aligned on top. - 参数
-
text | The text to draw. |
x | X of horizontal alignment position. |
y | Y of horizontal alignment position. |
h | Text height in point(or pixel) unit. |
align | alignment type, kAlignLeft|kAlignTop. |
angle | Rotate angle in radians, it's positive direction is CCW in the world coordinate system. |
- 返回
- Actual display width.
在 GiGdipCanvas, GiShapeAdapter, GiCanvasAdapter, GiRecordCanvas , 以及 GiSvgCanvas 内被实现.
|