Setting Bar Width

Bar Code for WPF Forum

Posted 14 years ago by cayenne
Hello actipro team,

I want to reduce the width of my barcode. I can set the BarHeight of the Symbology but how can I set the BarWidth (want to keep the BarWidthRatio)?
BarCode oBarCode = new BarCode();
Code128Symbology oSymbology = new Code128Symbology();
oBarCode.Symbology = oSymbology;
oSymbology.Value = "12345";
oSymbology.BarHeight = 10;
[Modified at 04/21/2008 10:29 AM]

[Modified at 04/21/2008 10:30 AM]

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
For that you can apply a ScaleTransform to the BarCode. Many of our samples show how to do that (they scale it up). In your case you'd want to use a scale factor less than 1.0.

Actipro Software Support

The latest build of this product (v22.1.3) was released 29 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.