PDFium Delphi Component Docs

ImageInfo 屬性

元件: TPdf  ·  單元: PDFium
單一影像物件的中繼資料:像素尺寸、篩選器、解析度、色彩深度與標記內容識別碼

語法

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

IndexInteger. ObjectType 為 otImage 之頁面物件以零為基底的索引
ResultTPdfImageInfo. 包含 Width、Height、Filters、HorizontalDpi、VerticalDpi、BitsPerPixel、ColorSpace 與 MarkedContentId 的記錄

說明

不解碼即描述影像,這正是稽核所需:Width 與 Height 是儲存的像素尺寸,而 HorizontalDpi 與 VerticalDpi 是物件矩陣把這些像素縮放到頁面後的有效解析度

Filters 依套用順序列出串流篩選器 - JPEG 用 DCTDecode、JPEG 2000 用 JPXDecode,以及 FlateDecode、JBIG2Decode 等 - 讓呼叫端知道重新編碼會涉及什麼

要取得像素,請讀取 Image 或 ObjectBitmap。要在原位重新編碼影像,請使用 OptimizeImages

另請參閱

Image, ImageCount, OptimizeImages, ObjectBitmap