HPDFDecodeDataMatrixQuadrilateral
Unit: HPDFDataMatrixDecoder
function HPDFDecodeDataMatrixQuadrilateral(const Mask: TBytes;
Width, Height: Integer; const Corners: THPDFBarcodeQuadrilateral;
CancellationToken: THPDFCancellationToken; StartTick: Cardinal;
out Text: UnicodeString; out RawBytes: TBytes;
out OrientationDegrees, Confidence: Single): Boolean;
Decode an ECC 200 Data Matrix whose projected corners are already known
The decoder tries supported square and standard rectangular sizes, rotations and mirrors, then validates locator borders, Reed-Solomon blocks and payload encoding
False clears text and raw bytes; a verified projective result reports confidence 0.90 as a verification-path score, with its canonical top-edge orientation in raster degrees