Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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.ExportToImage();
i.Save("barcode.png");
See Also