Saving a Barcode Produces a Black Image

< Back
You are here:

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.


Use Picture.SaveImageAs instead of Picture.Save.

For example, change:
barcode1.Picture.Save(@”..\..\img.jpg”, System.Drawing.Imaging.ImageFormat.Jpeg);
barcode1.SaveImageAs(@”..\..\img.jpg”, System.Drawing.Imaging.ImageFormat.Jpeg);

Previous Reporting Services Error on Deployment
Next Solutions to the following .NET errors:
Table of Contents