DrawTextArcA
文本, 页面布局
描述
末尾的 A 表示 ANSI(char)DLL 入口点;ActiveX/COM 接口仅公开 Unicode 形式。其行为与 DrawTextArc 相同,字符串参数按当前 SetAnsiMode 代码页解释
以指定中心点和半径将文本贴合到假想圆弧上绘制,文本's 左边缘将位于请求的角度,其中 0 度为 "12 o'clock" 位置,正角度为顺时针,可使用 SetTextAlign 函数更改文本相对于指定角度的对齐方式
语法
Delphi
Function DLDrawTextArcA(InstanceID: Integer; XPos, YPos, Radius, Angle: Double; Text: PAnsiChar; DrawOptions: Integer): Integer;
DLL
int DLDrawTextArcA(int InstanceID, double XPos, double YPos, double Radius, double Angle, const char * Text, int DrawOptions);
参数
| XPos | 弧中心的水平坐标 |
|---|---|
| YPos | 圆弧中心的垂直坐标 |
| Radius | 圆弧半径 |
| Angle | 放置文本的角度 |
| Text | 要绘制的实际文本 |
| DrawOptions | 0 = 沿顺时针方向在弧线外绘制文本 1 = 沿逆时针方向在弧线内绘制文本 |
返回值
| 0 | 文本为空,或 DrawOptions 参数超出范围 文本已成功绘制 |
|---|---|
| 1 |