The generation will create the QR code with EXACT scaling only (x1,
x2, x3), and if there is more space available, it will expand the
margins (4 modules minimum). This is designed to avoid doubling some
pixels when up-scaling, which would result in broken code.
Your requirement says it must be 2.75 centimetres, but the QR Code
is generated in pixels. I would suggest that you do the scaling in the
print, not in the generation phase.
Typically I request a 1x1 code, and I get a QR code with the minimum
allowed size. Afterwards I scale the bar-code to whatever size needs
to be printed by calculating the density, not the size.
Alternatively if your medium has fixed density you could use image
manipulation to resize the (minimum-size-generated) image to the
appropriate size to fit your medium. That is what I do when dealing
with label printers, which have fixed density and fixed space
available.
2013/12/4 Sri <
sriv...@gmail.com>:
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "zxing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
zxing+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.