TouchVG framework

◆ 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.

参数
textThe text to draw.
xX of horizontal alignment position.
yY of horizontal alignment position.
hText height in point(or pixel) unit.
alignalignment type, kAlignLeft|kAlignTop.
angleRotate angle in radians, it's positive direction is CCW in the world coordinate system.
返回
Actual display width.

GiGdipCanvas, GiShapeAdapter, GiCanvasAdapter, GiRecordCanvas , 以及 GiSvgCanvas 内被实现.

这是这个函数的调用关系图:

通用矢量图形框架, 版权所有 (C) 张云贵 2004-2017,BSD 开源许可证