SaveImageListItemDataToFile

Image handling

Description

Saves the image data of an image list item to a file on disk.

Syntax

Delphi

Function TPDFlib.SaveImageListItemDataToFile(ImageListID, ImageIndex, Options: Integer; Const ImageFileName: WideString): Integer;

ActiveX

Function PDFlib::SaveImageListItemDataToFile(ImageListID As Long, ImageIndex As Long, Options As Long, ImageFileName As String) As Long

DLL

int DLSaveImageListItemDataToFile(int InstanceID, int ImageListID, int ImageIndex, int Options, const wchar_t* ImageFileName);
int DLSaveImageListItemDataToFileA(int InstanceID, int ImageListID, int ImageIndex, int Options, const char* ImageFileName);

Parameters

ImageListIDA value returned by the GetPageImageList function
ImageIndexThe index of the image in the list. The first image has an index of 1.
OptionsReserved for future use. Should be set to 0.
ImageFileNameThe path and filename of the file to create

Return values

0Image data could not be saved
1Image data was saved successfully