释放指定图片内存1 - FreeImageData
函数简介
释放指定图片BMP等数据流格式地址。
接口名称
FreeImageData
DLL调用
int FreeImageData(long ola, long ptr);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| ptr | 长整数型 | BMP等数据流格式地址 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// hwnd 为绑定的窗口句柄
long img = GetScreenDataPtr(instance, 0, 0, 0, 0);
long data = 0;
int size = 0;
GetImageBmpData(instance, img, &data, &size);
// 使用完BMP数据后释放
FreeImageData(instance, data);
FreeImagePtr(instance, img);
Python
# 待补充
返回值
整数型:1 成功,0 失败。
