Barcode Fonts, Components, ActiveX and .NET Windows Forms Controls, Java Servlets, 
DLLs and Barcode Scanners. IDAutomation.com, Inc. is a BBB Accredited Business. Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Contact IDAutomationView your cart in the IDAutomation Store
Loading

Saving a Barcode Produces a Black Image

Saving the barcode image with the .NET Windows Forms Control with Picture.Save creates a completely black image.

Solution(s):

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);

Related Information:

To sign up for monthly updates about new products or upgrades, please click here. © Copyright 2012 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us


70% of Fortune 100 Company's use IDAutomation Products.