BarCodeControl.ExportToImage(ImageFormat) Method
In This Article
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.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public Image ExportToImage(
ImageFormat format
)
#Parameters
Name | Type | Description |
---|---|---|
format | Image |
A Image |
#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