Delphi Datamatrix Static size

Asked

Viewed 143 times

0

I am working with Data Matrix I am using the Unit Datamatrixbarcode, dmtx.

var
options:DatamatrixEncodeOptions;

options := InitializeDatamatrixEncodeOptions;
options.moduleSize := 4;
options.marginSize := 10;
options.rotate := 0;
options.scheme := DmtxScheme(2);
options.sizeIdx := DmtxSymbolSize(DmtxSymbol16x16);//DmtxSymbolSize(2-3);
options.mosaic := 0;
EncodeDatamatrix(Funcoes.ColocaZero('Produto:3445Produto:123',imgBarcode.Picture.Bitmap,options);

As the amount of information I have inside the Datamatrix will vary its size, that is if I have 20 products the Datamatrix gets one size, if I have 2 products will have another size. How do I make the size static, for example 100x100?

Data Matixbarcode lib dmtx

  • Where is available this Datamatrixbarcode ?

  • From what I understand about this component, there’s no way to do what you want, dynamically. I might be wrong, but it looks like there’s a way around this situation, which is by marking the Timage Stretch that displays the Qrcode. I could see if this works for you ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.