TouchVG framework

◆ drawTextAt()

float GiGdipCanvas::drawTextAt ( const char *  text,
float  x,
float  y,
float  h,
int  align,
float  angle 
)
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.

实现了 GiCanvas.


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