Barcode Fonts, Components, ActiveX and .NET Windows Forms Controls, Java Servlets, 
DLLs and Barcode Scanners.  Click to Verify - This site chose VeriSign SSL for secure e-commerce and confidential communications. Click for a Business Review of IDAutomation.com, Inc., a Barcode Hardware, Software & Services in Tampa FL

Loading


Menu

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:
 ©Copyright 2015 IDAutomation.com, All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook
Over 70% of Fortune 100 companies use IDAutomation's products to automate their businesses.