Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

QrRenderImage

function QrRenderImage(const aCode: tQrCode; aModulePixels: Integer = 4; aQuietModules: Integer = 4): tQrGrayImage; overload;
The other direction, and framework-free for the same reason: a symbol drawn into a grey raster. The two adapters render by calling this and blitting the result, so there is ONE renderer rather than a FireMonkey one and a VCL one that drift apart. It is also what lets the harness test the detector with no framework and no camera: draw, degrade, read.
function QrRenderImage(const aModules: TArray<Boolean>; aSize: Integer; aModulePixels: Integer = 4; aQuietModules: Integer = 4): tQrGrayImage; overload;
The same for a bare matrix, for a caller holding modules that did not come from this encoder - and for the harness, which renders matrices produced by an unrelated implementation so that what the detector reads back is not merely our own encoder agreeing with itself.