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




In This Topic
    GetBarcodeAsBitmap(Double,Double,UnitOfMeasure) Method
    In This Topic
    Returns barcode as a raster image with specified physical size.
    Syntax
    'Declaration
     
    Public Overloads Function GetBarcodeAsBitmap( _
       ByVal width As Double, _
       ByVal height As Double, _
       ByVal unitOfMeasure As UnitOfMeasure _
    ) As Bitmap
    'Usage
     
    Dim instance As BarcodeWriter
    Dim width As Double
    Dim height As Double
    Dim unitOfMeasure As UnitOfMeasure
    Dim value As Bitmap
     
    value = instance.GetBarcodeAsBitmap(width, height, unitOfMeasure)
    public Bitmap GetBarcodeAsBitmap( 
       double width,
       double height,
       UnitOfMeasure unitOfMeasure
    )
    public: Bitmap* GetBarcodeAsBitmap( 
       double width,
       double height,
       UnitOfMeasure unitOfMeasure
    ) 
    public:
    Bitmap^ GetBarcodeAsBitmap( 
       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 (Bitmap object).
    Remarks
    Important: This method generates barcode image without the barcode text, i.e. method ignores the WriterSettings.ValueVisible property.
    Use GetBarcodeAsBitmap method if you want to get barcode image with barcode text.

    The image resolution can be specified using the WriterSettings.Resolution property.
    The image padding can be specified using the WriterSettings.Padding property.
    Do not generate barcodes, which contain bars with width less than 2 pixels, because such barcodes are 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