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(Stream, ImageFormat, Int32) Method

In This Article

Saves the bar code as an image to a stream with the specified image format and resolution.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[EditorBrowsable(EditorBrowsableState.Never)]
public void ExportToImage(
    Stream stream,
    ImageFormat format,
    int resolution
)

#Parameters

Name Type Description
stream Stream

The Stream where the image will be saved.

format ImageFormat

A ImageFormat object specifying the format, such as PNG, BMP, GIF, of the saved image.

resolution Int32

An integer value specifying the horizontal and vertical resolution, in dots per inch, of the saved image

See Also