Skip to main content
All docs
V26.1
  • BarcodeGenerator.ExportToImage(String, Encoding, DXImageFormat) Method

    Generates a barcode image for the supplied text using the specified encoding.

    Namespace: DevExpress.Docs.Barcode

    Assembly: DevExpress.Docs.Barcode.v26.1.dll

    Declaration

    public DXImage ExportToImage(
        string text,
        Encoding encoding,
        DXImageFormat format
    )

    Parameters

    Name Type Description
    text String

    The text to encode as a barcode.

    encoding Encoding

    The encoding to use for the text.

    Optional Parameters

    Name Type Default Description
    format DXImageFormat null

    The format of the generated image.

    Returns

    Type Description
    DXImage

    The generated barcode image.

    See Also