Saving a Barcode Image as a File From the .NET 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);
See also:
© Copyright
2002-2008 IDAutomation.com, Inc., All Rights Reserved. Legal
Notices.
|
Over 70% of Fortune 100 companies use
IDAutomation products to automate their businesses.
|
|