SaveImageToFileA
Image handling
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to SaveImageToFile and string arguments are interpreted using the current SetAnsiMode code page
Saves the selected image to a file on disk. Only certain images can be saved. If the ImageType
Syntax
Delphi
Function DLSaveImageToFileA(InstanceID: Integer; FileName: PAnsiChar): Integer;
DLL
int DLSaveImageToFileA(int InstanceID, const char * FileName);
Parameters
| FileName | The name of the image file to create. |
|---|
Return values
| 0 | The image could not be saved. Either an image is not selected or the file could not be created. |
|---|---|
| 1 | The image was saved successfully |