PDFium Delphi Component 文件

ObjectBitmap 屬性

元件: TPdf  ·  單元: PDFium
索引屬性 — 將單一影像頁面物件傳回為可繪製的 VCL TBitmap(會從 JPX/CCITT 等格式進行有損解碼)

Syntax

property ObjectBitmap[Index: Integer]: TBitmap; // read only

Description

索引式唯讀屬性,將單一影像頁面物件傳回為可繪製的 VCL TBitmap(會從 JPX/CCITT 等格式進行有損解碼)

要求 Active 為 True。索引超出有效範圍時結果未定義;請傳入 0 .. BitmapCount - 1 內的值(非計數式變體則使用陣列的 Length)

傳回的記錄是呼叫當下數值的快照;後續對文件的編輯不會修改先前傳回的記錄

Parameters

Index以 0 為基底的索引,範圍 0 .. BitmapCount - 1

Remarks

Example

var
  I: Integer;
begin
  if not Pdf1.Active then Exit;
  for I := 0 to Pdf1.BitmapCount - 1 do
  begin
    // inspect Pdf1.ObjectBitmap[I]
    Memo1.Lines.Add(IntToStr(I));
  end;
end;

See Also

BitmapCount, Image, ImageCount