TPDFVisualBitmap

資料類型、文件比較、描繪

描述

TPDFVisualBitmap 是視覺比較輔助函式交換用的記憶體點陣圖,並以疊圖形式存放在 TPDFVisualCompareResult 中。

列由上而下存放,Stride 是列之間的位元組距離,因此列有填充時可能大於 Width 乘以通道數。

語法

Delphi

TPDFVisualBitmap = record
  Width, Height, Stride: Integer;
  Format: TPDFVisualPixelFormat;
  Data: TBytes;
end;

欄位

Width點陣圖寬度,以像素計
Height點陣圖高度,以像素計
Stride每列的位元組數,含填充
FormatData 的通道順序與 alpha 配置
Data由上而下列序的像素位元組;長度至少為 Stride 乘以 Height

備註

通道未預乘。比較會從每個像素前三個位元組讀取 RGB,忽略 alpha。

Data 由呼叫端擁有;比較成功時傳回 RGB 格式、stride 為 Width 乘 3 的疊圖點陣圖。

另請參閱

TPDFVisualPixelFormat, TPDFVisualCompareResult, TPDFVisualRect