Saving a Barcode Image as a File with the
.NET Windows Forms
Control Produces a Black Image
Saving the barcode image with Picture.Save creates a completely black
image.
Use Picture.SaveImageAs instead of Picture.Save.
For example, change:
barcode1.Picture.Save(@"..\..\img.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
To:
barcode1.SaveImageAs(@"..\..\img.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
© Copyright 2002-2009 IDAutomation.com, Inc., All Rights
Reserved. Legal
Notices.
|
Over 70% of Fortune 100
companies use IDAutomation products to automate their businesses.
|
|