绘制图片 - DrawGuiImage
函数简介
创建图片绘制对象。
接口名称
DrawGuiImage
DLL调用
int64_t DrawGuiImage(int64_t instance, char* imagePath, int32_t x, int32_t y);
参数说明
参数名 | 类型 | 说明 |
---|---|---|
instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
imagePath | 字符串 | 图片文件路径。 |
x | 整数型 | 左上角X。 |
y | 整数型 | 左上角Y。 |
示例
int64_t ola = CreateCOLAPlugInterFace();
int64_t img = DrawGuiImage(ola, "C:/imgs/logo.png", 10, 10);
// ...
DestroyCOLAPlugInterFace(ola);
返回值
对象句柄,失败返回0。