Back to Devexpress

BarCode.BarCodeImage Property

officefileapi-devexpress-dot-barcodes-dot-barcode-a6d2314d.md

latest3.0 KB
Original Source

BarCode.BarCodeImage Property

Gets the bar code image.

Namespace : DevExpress.BarCodes

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public DXBitmap BarCodeImage { get; }
vb
Public ReadOnly Property BarCodeImage As DXBitmap

Property Value

TypeDescription
DXBitmap

The barcode image.

|

Remarks

Use the BarCodeImage property to obtain the resulting bar code image. The bar code image is reset when any BarCode property is changed.

Note

Barcode export to WMF and EMF images is not available if you use the BarCode.BarCodeImage.Save method. Use the BarCode.Save method instead.

The following code snippets (auto-collected from DevExpress Examples) contain references to the BarCodeImage property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-grid-display-barcode-in-column/CS/ASPxGridViewBarCode/Default.aspx.cs#L36

csharp
barCode.DpiY = 72;
    return ImageToByte(barCode.BarCodeImage);
}

word-document-api-insert-inline-pictures/VB/InlinePictures/Program.vb#L45

vb
Dim docFooter As SubDocument = doc.Sections(0).BeginUpdateFooter()
docFooter.Images.Append(barCode.BarCodeImage)
doc.Sections(0).EndUpdateFooter(docFooter)

asp-net-web-forms-grid-display-barcode-in-column/VB/ASPxGridViewBarCode/Default.aspx.vb#L42

vb
barCode.DpiY = 72
    Return ImageToByte(barCode.BarCodeImage)
End Function

See Also

BarCode Class

BarCode Members

DevExpress.BarCodes Namespace