GetAlternateImageInfo

Image handling, document inspection

Description

Reads the image reference, printing preference and optional-content reference from one alternate-image dictionary

Syntax

Function TPDFlib.GetAlternateImageInfo(BaseImageID, Index: Integer; Out Info: TPDFlibAlternateImageInfo): Integer;

Parameters

BaseImageIDThe base image containing the /Alternates array
IndexThe one-based alternate index
InfoReceives the typed alternate-image fields

Return value

Returns 1 on success or 0 for an invalid handle, index, dictionary or image reference

Remarks

FindImages registers page-resource images and their reachable alternates so imported image references receive usable ImageID values

Object and generation numbers remain available for diagnostics even when a caller obtains the record from unusual imported object structures

See also

TPDFlibAlternateImageInfo, AlternateImageCount, FindImages