Lazbarcodes: Refinements of TBarcodePDF417 and TBarcodeDataMatrix palette icons.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8248 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-04-08 20:55:27 +00:00
parent c5c3755b64
commit 77380837cf
5 changed files with 16 additions and 11 deletions

View File

@ -436,12 +436,14 @@ object MainForm: TMainForm
end end
end end
object btnSaveToFile: TBitBtn object btnSaveToFile: TBitBtn
AnchorSideLeft.Control = gbChecksum
AnchorSideTop.Control = gbColors AnchorSideTop.Control = gbColors
AnchorSideRight.Control = btnCopyToClipboard
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 205 Left = 205
Height = 25 Height = 25
Top = 233 Top = 233
Width = 128 Width = 121
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
AutoSize = True AutoSize = True
BorderSpacing.Top = 9 BorderSpacing.Top = 9
@ -450,16 +452,14 @@ object MainForm: TMainForm
TabOrder = 4 TabOrder = 4
end end
object btnCopyToClipboard: TBitBtn object btnCopyToClipboard: TBitBtn
AnchorSideLeft.Control = btnSaveToFile AnchorSideLeft.Control = gbChecksum
AnchorSideTop.Control = btnSaveToFile AnchorSideTop.Control = btnSaveToFile
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = btnSaveToFile
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 205 Left = 205
Height = 25 Height = 25
Top = 264 Top = 264
Width = 128 Width = 121
Anchors = [akTop, akLeft, akRight]
AutoSize = True AutoSize = True
BorderSpacing.Top = 6 BorderSpacing.Top = 6
Caption = 'Copy to clipboard' Caption = 'Copy to clipboard'
@ -488,7 +488,7 @@ object MainForm: TMainForm
Height = 293 Height = 293
Top = 35 Top = 35
Width = 152 Width = 152
PageIndex = 2 PageIndex = 0
BorderSpacing.Left = 16 BorderSpacing.Left = 16
TabOrder = 7 TabOrder = 7
object pgOptions_QR: TPage object pgOptions_QR: TPage

Binary file not shown.

Before

Width:  |  Height:  |  Size: 973 B

After

Width:  |  Height:  |  Size: 344 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 490 B

After

Width:  |  Height:  |  Size: 324 B

View File

@ -3026,6 +3026,10 @@ end;
as possible. Needed when FScale = 0. Considers only integer multiples of as possible. Needed when FScale = 0. Considers only integer multiples of
pixels} pixels}
function TBarcodeSquare.CalcFactor(AWidth, AHeight: Integer): Integer; function TBarcodeSquare.CalcFactor(AWidth, AHeight: Integer): Integer;
begin
if FSymbol^.Width = 0 then
Result := 1
else
begin begin
if AWidth > AHeight then if AWidth > AHeight then
Result := AHeight div FSymbol^.Width Result := AHeight div FSymbol^.Width
@ -3034,6 +3038,7 @@ begin
if Result = 0 then if Result = 0 then
Result := 1; Result := 1;
end; end;
end;
{ Calculates scaled size parameters for the barcode. } { Calculates scaled size parameters for the barcode. }
procedure TBarcodeSquare.CalcSize(AFactor: Integer; out ATotalWidth, ATotalHeight, procedure TBarcodeSquare.CalcSize(AFactor: Integer; out ATotalWidth, ATotalHeight,