DASaveImageDataToFileA

Image handling, Direct access functionality

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to DASaveImageDataToFile and string arguments are interpreted using the current SetAnsiMode code page

Saves an image in an image list to a file on disk. The type of image file depends on the type of the image. The DAGetImageIntProperty function can be used to determine the image type.

Syntax

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);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
ImageListIDA value returned by the DAGetPageImageList function The index of the image. The first image in the list has an index of 1. Use the DAGetImageListCount function to determine the number of images in the list.
ImageIndex
ImageFileNameThe path and file name of the file to create to store the image data in.