HPDFSampleBarcodeQuadrilateral

Unit: HPDFDataMatrixGeometry

function HPDFSampleBarcodeQuadrilateral(const Mask: TBytes;
  Width, Height, Rows, Columns: Integer;
  const Corners: THPDFBarcodeQuadrilateral;
  CancellationToken: THPDFCancellationToken; StartTick: Cardinal;
  out Grid: THPDFBarcodeModuleGrid): Boolean;

Solve a projective mapping and sample the module centres with a five-point majority vote

The mask has one byte per pixel; consecutive convex corners, source dimensions and the shared geometry deadline are all checked before sampling

Rows and Columns must each lie between 8 and 144; invalid or degenerate geometry returns false with no usable grid, whilst cancellation propagates

Multi-symbol raster barcode scanning