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 .. BitmapCount - 1 范围内的基于 0 的索引

Remarks

Example

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

See Also

BitmapCount, Image, ImageCount