THPDFInlineImgKeys 记录

保存内联图像的规范化键/值集合,缩写已展开为完整字典名

声明

THPDFInlineImgKeys= record
  Width: Integer;             // /W  -> /Width
  Height: Integer;            // /H  -> /Height
  BitsPerComponent: Integer;  // /BPC -> /BitsPerComponent
  ColorSpace: AnsiString;     // /CS -> /ColorSpace, full name (DeviceGray..)
  Filter: AnsiString;         // /F  -> /Filter, full pipeline name (FlateDecode..)
  DecodeParms: AnsiString;    // /DP -> /DecodeParms, raw token text if present
  ImageMask: Boolean;         // /IM -> /ImageMask
  Decode: AnsiString;         // /D  -> /Decode, raw array text if present
  HasWidth: Boolean;          // whether /W was supplied
  HasHeight: Boolean;         // whether /H was supplied
  HasBPC: Boolean;            // whether /BPC was supplied
end;

单元

HPDFContentStream

字段

字段用途
Width图像宽度(像素),由 /W 展开而来
Height图像高度(像素),由 /H 展开而来
BitsPerComponent每个色彩分量的位数,由 /BPC 展开而来
ColorSpace完整色彩空间名称(例如 DeviceGray),由 /CS 展开而来
Filter完整滤镜管线名称(例如 FlateDecode),由 /F 展开而来
DecodeParms解码参数的原始令牌文本,由 /DP 展开而来
ImageMask内联图像为图像掩码时为 True(来自 /IM)
Decodedecode 数组的原始令牌文本,例如 [1 0],来自 /D;缺失时为空。渲染器用它绘制带 /D [1 0] 的图像掩码,此时样本值为 1 的位置被绘制
HasWidthBI 字典中提供了 /W 时为 True
HasHeight提供了 /H 时为 True
HasBPC提供了 /BPC 时为 True

使用说明

相关 API