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 module centers using a five-point majority vote

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

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

Multi-symbol raster barcode scanning