绘制圆形 - DrawGuiCircle
函数简介
创建圆形绘制对象,支持填充/描边模式与线宽设置。
接口名称
DrawGuiCircle
DLL调用
int64_t DrawGuiCircle(int64_t instance, int32_t x, int32_t y,
int32_t radius, int32_t mode, double lineThickness);
参数说明
参数名 | 类型 | 说明 |
---|---|---|
instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
x | 整数型 | 圆心X。 |
y | 整数型 | 圆心Y。 |
radius | 整数型 | 半径。 |
mode | 整数型 | 绘制模式,见 DrawMode。 |
lineThickness | 双精度型 | 线宽(像素),对描边模式有效。 |
示例
int64_t ola = CreateCOLAPlugInterFace();
int64_t c = DrawGuiCircle(ola, 200, 200, 60, 1, 2.0);
// ...
DestroyCOLAPlugInterFace(ola);
返回值
对象句柄,失败返回0。
注意事项
- 颜色、透明度等可通过属性设置接口进行配置。