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 known in advance
The decoder tries the supported square and standard rectangular sizes, rotations and mirrors, then checks locator borders, Reed-Solomon blocks and payload encoding
False clears the 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