释放路径下图片内存 - FreeImagePath
函数简介
释放指定路径下的图片内存。
接口名称
FreeImagePath
DLL调用
int FreeImagePath(long ola, string path);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| path | 字符串 | 待释放的图片的路径 |
示例
C++
long instance = CreateCOLAPlugInterFace();
// 释放指定路径下的图片内存
int ret = FreeImagePath(instance, "C:\\images\\test.bmp");
if (ret == 1) {
printf("图片内存释放成功\n");
}
Python
# 待补充
返回值
整数型:1 成功,0 失败。
