Skip to main content

BarCodeControl.ExportToImage(ImageFormat) Method

Creates an image of the bar code with the specified image format and a resolution of 96 DPI.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public Image ExportToImage(
    ImageFormat format
)

Parameters

Name Type Description
format ImageFormat

A ImageFormat object specifying the image format, such as PNG, BMP, or GIF, in which the bar code should be returned.

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 specified format and a resolution of 96 DPI.

Image i = barCodeControl1.ExportToImage(System.Drawing.Imaging.ImageFormat.Bmp);
i.Save("barcode.bmp");
See Also