DASaveImageDataToFile
类别:图像处理、直接访问功能
描述
将图像列表中的图像保存到磁盘文件。图像文件类型取决于图像类型。可使用 DAGetImageIntProperty 函数确定图像类型
语法
Delphi
Function TPDFlib.DASaveImageDataToFile(FileHandle, ImageListID, ImageIndex: Integer; Const ImageFileName: WideString): Integer;
ActiveX
Function PDFlib::DASaveImageDataToFile(FileHandle As Long, ImageListID As Long, ImageIndex As Long, ImageFileName As String) As Long
DLL
int DLDASaveImageDataToFile(int InstanceID, int FileHandle, int ImageListID, int ImageIndex, const wchar_t* ImageFileName);
int DLDASaveImageDataToFileA(int InstanceID, int FileHandle, int ImageListID, int ImageIndex, const char* ImageFileName);
参数
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄 |
|---|---|
| ImageListID | 由 DAGetPageImageList 函数返回的值 |
| ImageIndex | 图像索引。列表中的第一张图像索引为 1。使用 DAGetImageListCount 函数确定列表中的图像数量 |
| ImageFileName | 用于存储图像数据的待创建文件的路径和文件名 |
返回值
图像数据写入成功后返回 1。文件句柄或图像列表无效、图像没有数据或无法写入文件时返回 0。