GetImageListItemIntProperty

Image handling

Description

Returns an Integer type property of the specified image list item.

Syntax

Delphi

function TPDFlib.GetImageListItemIntProperty(ImageListID, ImageIndex, PropertyID: Integer): Integer;

ActiveX

Function PDFlib::GetImageListItemIntProperty(ImageListID As Long, ImageIndex As Long, PropertyID As Long) As Long

DLL

int DLGetImageListItemIntProperty(int InstanceID, int ImageListID, int ImageIndex, int PropertyID);

Parameters

ImageListIDA value returned by the GetPageImageList function The index of the image in the list. The first image has an index of 1.
ImageIndex
PropertyID400 = Image type (see ImageType) for values 401 = Width in pixels 402 = Height in pixels 403 = Bits per pixel 404 = Color space type 405 = Image ID (will be 0 if it is an Inline image) 406 = Constant Image ID 407 = Image object number

Return values

1JPEG (for image type) DeviceGray (for color space type) 2 BMP (for image type) DeviceRGB (for color space type) 3 TIFF (for image type) DeviceCMYK (for color space type) 4 PNG (for image type) The selected image is a PNG image. This is only possible when using the GetPageImageList function where an image has a mask. The library will create an Transparent PNG file if a mask is found.
-1Unknown (for color space type)