VintaSoft Barcode .NET SDK v10.0
Vintasoft.WpfBarcode Namespace / BarcodeWriter Class / GetBarcodeAsBitmapSource Method / GetBarcodeAsBitmapSource(Double,Double,UnitOfMeasure) Method
The image width, in units.
The image height, in units.
The unit of measure.




In This Topic
    GetBarcodeAsBitmapSource(Double,Double,UnitOfMeasure) Method
    In This Topic
    Returns barcode as an image (Bitmap object) with specified size.
    Syntax
    'Declaration
     
    Public Overloads Function GetBarcodeAsBitmapSource( _
       ByVal width As Double, _
       ByVal height As Double, _
       ByVal unitOfMeasure As UnitOfMeasure _
    ) As BitmapSource
    'Usage
     
    Dim instance As BarcodeWriter
    Dim width As Double
    Dim height As Double
    Dim unitOfMeasure As UnitOfMeasure
    Dim value As BitmapSource
     
    value = instance.GetBarcodeAsBitmapSource(width, height, unitOfMeasure)
    public BitmapSource GetBarcodeAsBitmapSource( 
       double width,
       double height,
       UnitOfMeasure unitOfMeasure
    )
    public: BitmapSource* GetBarcodeAsBitmapSource( 
       double width,
       double height,
       UnitOfMeasure unitOfMeasure
    ) 
    public:
    BitmapSource^ GetBarcodeAsBitmapSource( 
       double width,
       double height,
       UnitOfMeasure unitOfMeasure
    ) 

    Parameters

    width
    The image width, in units.
    height
    The image height, in units.
    unitOfMeasure
    The unit of measure.

    Return Value

    A barcode as an image (BitmapSource object).
    Remarks
    Do not generate barcodes, which contains bars with width less than 2 pixels, because such barcodes is difficult to recognize.
    Requirements

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

    See Also