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
  ColorSpaceObject: THPDFObject; // optional resolved /Resources/ColorSpace entry
end;

单元

HPDFContentStream

字段

字段用途
Width图像宽度(像素),由 /W 展开而来
Height图像高度(像素),由 /H 展开而来
BitsPerComponent每个色彩分量的位数,由 /BPC 展开而来
ColorSpace完整色彩空间名称(例如 DeviceGray),由 /CS 展开而来
Filter完整滤镜管线名称(例如 FlateDecode),由 /F 展开而来;滤镜数组保留其数组文本并展开每个缩写名,例如 [/ASCIIHexDecode /DCTDecode]
DecodeParms解码参数的原始令牌文本,由 /DP 展开而来:完整的 <<...>> 字典、与滤镜对齐的 [...] 数组,或 null;VCL 渲染器把它解析成图像的 DecodeParms,因此 DCT ColorTransform 按图像 XObject 的规则生效
ImageMask内联图像为图像掩码时为 True(来自 /IM)
Decodedecode 数组的原始令牌文本,例如 [1 0],来自 /D;缺失时为空。渲染器用它绘制带 /D [1 0] 的图像掩码,此时样本值为 1 的位置被绘制
HasWidthBI 字典中提供了 /W 时为 True
HasHeight提供了 /H 时为 True
HasBPC提供了 /BPC 时为 True
ColorSpaceObject渲染器能够解析时,/CS 名称背后可选的已解析 /Resources 色彩空间条目;名称无对应解析结果时为 nil

使用说明

相关 API