DASaveImageDataToFileA

类别:图像处理、直接访问功能

描述

末尾的 A 表示 ANSI(char)DLL 入口点 ActiveX/COM 接口仅提供 Unicode 形式 行为与 DASaveImageDataToFile 相同,字符串参数使用当前 SetAnsiMode 代码页解释

将图像列表中的图像保存到磁盘文件。图像文件类型取决于图像类型。可使用 DAGetImageIntProperty 函数确定图像类型

语法

Delphi

Function DLDASaveImageDataToFileA(InstanceID, FileHandle, ImageListID, ImageIndex: Integer; ImageFileName: PAnsiChar): Integer;

DLL

int DLDASaveImageDataToFileA(int InstanceID, int FileHandle, int ImageListID, int ImageIndex, const char* ImageFileName);

参数

FileHandle由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄
ImageListID由 DAGetPageImageList 函数返回的值
ImageIndex图像索引。列表中的第一张图像索引为 1。使用 DAGetImageListCount 函数确定列表中的图像数量
ImageFileName用于存储图像数据的待创建文件的路径和文件名