-----Original Message----- From: "José Mejuto"<[email protected]> To: <[email protected]>; Cc: Sent: 2015-12-16 (수) 00:14:02 Subject: Re: [Lazarus] how to Draw Data Matrix by TLazBarcode El 15/12/2015 a las 10:28, 최경식 escribió: > i use lazarus 1.0.10 ver. > > i want to Draw Data Matrix 2D Barcode. > > so i used TLazBarcode Component, but it dosen't draw well. > > Data Matrix Format is variable when increase Data Matrix data. > > how to fix Data Matrix Format? > > i attach two picture. > > thank you
>Hello, >Both Datamatrix are OK and well formed, unfortunatly there are many >options to generate some barcodes and I was unable to add much of them >due lack of time and there is no much people using the package and >maintain it is not, by now, a priority to me. >In order to generate the DataMatrix as you like it, squared, please open >the package source file "ubarcodes.pas", look for "procedure >TBarcodeDataMatrix.Generate" and change the function by this one: --------------------------- >procedure TBarcodeDataMatrix.Generate; >var >ErrorCode: integer; >begin >if Assigned(FQR) then begin >ZBarcode_Delete(FQR); >FQR:=nil; >end; >if Length(FText)>0 then begin >FQR:=ZBarcode_Create(); >with FQR^ do begin >border_width:=1; >option_3:=DM_SQUARE; >end; >ErrorCode:=dmatrix(FQR,@FText[1],Length(FText)); >if ErrorCode<>0 then begin >FLastErrorString:=FQR^.errtxt; >exit; >end; >end; >end; -------------------------- >Note the "option_3" as DM_SQUARE setting. Thank you for your answer. I solve this problem. I'm so so so appreciate. But I have one more problem. How to change Data Matrix width and Height. if you know any way, please share me. Thank you. _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
