Home:  Support:  Search:

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.

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:

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.