VintaSoft Barcode .NET SDK v10.0
GetBarcodeAsBitmap(BarcodeWriter,Double,Double,UnitOfMeasure) Method




Vintasoft.WpfBarcode Namespace > BarcodeDrawingContextRenderer Class > GetBarcodeAsBitmap Method : GetBarcodeAsBitmap(BarcodeWriter,Double,Double,UnitOfMeasure) Method
The barcode writer, which is used for barcode generation.
Width of the barcode image.
Height of the barcode image.
Unit of measure of width and height.
Returns barcode as an image.
Syntax
'Declaration
 
Public Overloads Function GetBarcodeAsBitmap( _
   ByVal barcodeWriter As BarcodeWriter, _
   ByVal barcodeImageWidth As Double, _
   ByVal barcodeImageHeight As Double, _
   ByVal unitOfMeasure As UnitOfMeasure _
) As BitmapSource
'Usage
 
Dim instance As BarcodeDrawingContextRenderer
Dim barcodeWriter As BarcodeWriter
Dim barcodeImageWidth As Double
Dim barcodeImageHeight As Double
Dim unitOfMeasure As UnitOfMeasure
Dim value As BitmapSource
 
value = instance.GetBarcodeAsBitmap(barcodeWriter, barcodeImageWidth, barcodeImageHeight, unitOfMeasure)

Parameters

barcodeWriter
The barcode writer, which is used for barcode generation.
barcodeImageWidth
Width of the barcode image.
barcodeImageHeight
Height of the barcode image.
unitOfMeasure
Unit of measure of width and height.

Return Value

A barcode as an image.
Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

BarcodeDrawingContextRenderer Class
BarcodeDrawingContextRenderer Members
Overload List