DAGetImageDataToString

Image handling, Direct access functionality

Description

Returns the image data of an image in an image list.

The format of the data depends on the type of the image.

The DAGetImageIntProperty function can be used to determine the image type.

Syntax

Delphi

function TPDFlib.DAGetImageDataToString(FileHandle, ImageListID, ImageIndex: Integer): AnsiString;

ActiveX

Function PDFlib::DAGetImageDataToString(FileHandle As Long, ImageListID As Long, ImageIndex As Long) As String

DLL

char * DLDAGetImageDataToString(int InstanceID, int FileHandle, int ImageListID, int ImageIndex);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
ImageListIDA value returned by the DAGetPageImageList function
ImageIndexThe 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.