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要建立以存放影像資料的檔案路徑與檔名。