Skip to main content
A newer version of this page is available. .

BarCodeControl.ExportToImage() Method

Creates an image of the bar code in the PNG format with a resolution of 96 DPI.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public Image ExportToImage()

Returns

Type Description
Image

A Image object, specifying the currently displayed bar code as an image.

Remarks

Use the ExportToImage method to get the currently displayed bar code as an image in the PNG format with a resolution of 96 DPI.


Image i = barCodeControl1.ToImage();
i.Save("barcode.png");
See Also