HPDFLocateDataMatrixQuadrilateral

Unit: HPDFDataMatrixGeometry

function HPDFLocateDataMatrixQuadrilateral(const Mask: TBytes;
  Width, Height: Integer; CancellationToken: THPDFCancellationToken;
  StartTick: Cardinal; out Corners: THPDFBarcodeQuadrilateral): Boolean;

Derive a convex foreground hull and recover the four projected edges from a byte-per-pixel binary mask

Nonzero mask values mean foreground; Width and Height are at most 4,096, with at most 4,194,304 pixels and exactly Width multiplied by Height mask bytes

StartTick is the request start from Windows GetTickCount; the geometry work shares a 2,000-millisecond deadline and checks cancellation; invalid or ambiguous geometry comes back as false

Multi-symbol raster barcode scanning