设置颜色 - DrawGuiSetColor
函数简介
设置绘制对象的颜色(RGBA)。
接口名称
DrawGuiSetColor
DLL调用
int32_t DrawGuiSetColor(int64_t instance, int64_t handle, int32_t r, int32_t g,
int32_t b, int32_t a);
参数说明
参数名 | 类型 | 说明 |
---|---|---|
instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
handle | 长整数型 | 对象句柄。 |
r | 整数型 | 红色分量(0-255)。 |
g | 整数型 | 绿色分量(0-255)。 |
b | 整数型 | 蓝色分量(0-255)。 |
a | 整数型 | 透明度(0-255)。 |
示例
DrawGuiSetColor(ola, obj, 255, 0, 0, 200);
返回值
0 失败,1 成功。