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




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.
Returns barcode as an image (Bitmap object) with specified 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
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

Reference

BarcodeWriter Class
BarcodeWriter Members
Overload List
Resolution Property
Padding Property