PDFiumVCL 文档

ObjectBitmap property

此 API 条目保留标识符、签名、代码块和 PDF 术语的原始形式。
Component: TPdf  ·  Unit: PDFium
Indexed property — returns one image page object as a renderable VCL TBitmap (lossy decoded from JPX/CCITT/etc.)

Syntax

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

Description

Indexed read-only property that returns one image page object as a renderable VCL TBitmap (lossy decoded from JPX/CCITT/etc.)

Requires Active to be True. The result is undefined when the index is outside the valid range; pass values in 0 .. BitmapCount - 1 (or use the array's Length for non-counted variants).

The returned record is a snapshot of the value at the time of the call; subsequent edits to the document do not modify previously returned records.

Parameters

IndexZero-based index in the range 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