TPDFVisualBitmap
Data types, document comparison, rendering
Description
TPDFVisualBitmap is the in-memory bitmap exchanged by the visual comparison helpers and carried in TPDFVisualCompareResult as the overlay.
Rows are stored top-down and Stride is the byte distance between rows, so it can exceed Width times the channel count when rows are padded.
Syntax
Delphi
TPDFVisualBitmap = record
Width, Height, Stride: Integer;
Format: TPDFVisualPixelFormat;
Data: TBytes;
end;Fields
| Width | Bitmap width in pixels |
|---|---|
| Height | Bitmap height in pixels |
| Stride | Bytes per row, including any padding |
| Format | Channel order and alpha layout of Data |
| Data | Pixel bytes in top-down row order; the length is at least Stride times Height |
Remarks
Channels are not premultiplied. The comparison reads RGB from the first three bytes of each pixel and ignores alpha.
The caller owns Data; a successful comparison returns an overlay bitmap with an RGB format and a stride of Width times 3.
See also
TPDFVisualPixelFormat, TPDFVisualCompareResult, TPDFVisualRect