Setting Bar Width

Bar Code for WPF Forum

Posted 16 years ago by cayenne
Avatar
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 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.