PDFium Delphi Component Docs

ImageInfo property

Component: TPdf  ·  Unit: PDFium
Metadata of one image object: pixel size, filters, resolution, colour depth and marked-content id

Syntax

property ImageInfo[Index: Integer]: TPdfImageInfo; // read-only

IndexInteger. Zero-based index of a page object whose ObjectType is otImage
ResultTPdfImageInfo. Record with Width, Height, Filters, HorizontalDpi, VerticalDpi, BitsPerPixel, ColorSpace and MarkedContentId

Description

Describes the image without decoding it, which is what an audit needs: Width and Height are the stored pixel dimensions, whilst HorizontalDpi and VerticalDpi are the effective resolution after the object matrix scales those pixels onto the page

Filters lists the stream filters in application order - DCTDecode for JPEG, JPXDecode for JPEG 2000, FlateDecode, JBIG2Decode and so on - which tells a caller what re-encoding would involve

To get the pixels, read Image or ObjectBitmap. To re-encode images in place, use OptimizeImages

See Also

Image, ImageCount, OptimizeImages, ObjectBitmap