VintaSoft Barcode .NET SDK v10.0
Vintasoft.Barcode Namespace / BarcodeWriter Class / CreateBitmapFromBarcodePath Method
Graphics path, which presents the barcode in vector form.
Barcode width, in units.
Barcode height, in units.
Left padding, in units.
Top padding, in units.
Right padding, in units.
Bottom padding, in units.
Bitmap horizontal resolution, in dpi.
Bitmap vertical resolution, in dpi.
Units of measure.
Background image color.
Barcode color.
Specifies antialiased rendering of barcode path.




In This Topic
    CreateBitmapFromBarcodePath Method (BarcodeWriter)
    In This Topic
    Creates barcode image with exact physical dimensions from barcode graphics path.
    Syntax
    'Declaration
     
    <ObsoleteAttribute("This method is obsolete, use the GetBarcodeAsBitmap(double, double, UnitOfMeasure) method instead.")>
    Public Shared Function CreateBitmapFromBarcodePath( _
       ByVal barcodePath As GraphicsPath, _
       ByVal barcodeWidth As Single, _
       ByVal barcodeHeight As Single, _
       ByVal paddingLeft As Single, _
       ByVal paddingTop As Single, _
       ByVal paddingRight As Single, _
       ByVal paddingBottom As Single, _
       ByVal horizontalResolution As Single, _
       ByVal verticalResolution As Single, _
       ByVal units As UnitOfMeasure, _
       ByVal backgroundColor As Color, _
       ByVal barcodeColor As Color, _
       ByVal antiAlias As Boolean _
    ) As Bitmap
    'Usage
     
    Dim barcodePath As GraphicsPath
    Dim barcodeWidth As Single
    Dim barcodeHeight As Single
    Dim paddingLeft As Single
    Dim paddingTop As Single
    Dim paddingRight As Single
    Dim paddingBottom As Single
    Dim horizontalResolution As Single
    Dim verticalResolution As Single
    Dim units As UnitOfMeasure
    Dim backgroundColor As Color
    Dim barcodeColor As Color
    Dim antiAlias As Boolean
    Dim value As Bitmap
     
    value = BarcodeWriter.CreateBitmapFromBarcodePath(barcodePath, barcodeWidth, barcodeHeight, paddingLeft, paddingTop, paddingRight, paddingBottom, horizontalResolution, verticalResolution, units, backgroundColor, barcodeColor, antiAlias)
    [Obsolete("This method is obsolete, use the GetBarcodeAsBitmap(double, double, UnitOfMeasure) method instead.")]
    public static Bitmap CreateBitmapFromBarcodePath( 
       GraphicsPath barcodePath,
       float barcodeWidth,
       float barcodeHeight,
       float paddingLeft,
       float paddingTop,
       float paddingRight,
       float paddingBottom,
       float horizontalResolution,
       float verticalResolution,
       UnitOfMeasure units,
       Color backgroundColor,
       Color barcodeColor,
       bool antiAlias
    )
    [Obsolete("This method is obsolete, use the GetBarcodeAsBitmap(double, double, UnitOfMeasure) method instead.")]
    public: static Bitmap* CreateBitmapFromBarcodePath( 
       GraphicsPath* barcodePath,
       float barcodeWidth,
       float barcodeHeight,
       float paddingLeft,
       float paddingTop,
       float paddingRight,
       float paddingBottom,
       float horizontalResolution,
       float verticalResolution,
       UnitOfMeasure units,
       Color backgroundColor,
       Color barcodeColor,
       bool antiAlias
    ) 
    [Obsolete("This method is obsolete, use the GetBarcodeAsBitmap(double, double, UnitOfMeasure) method instead.")]
    public:
    static Bitmap^ CreateBitmapFromBarcodePath( 
       GraphicsPath^ barcodePath,
       float barcodeWidth,
       float barcodeHeight,
       float paddingLeft,
       float paddingTop,
       float paddingRight,
       float paddingBottom,
       float horizontalResolution,
       float verticalResolution,
       UnitOfMeasure units,
       Color backgroundColor,
       Color barcodeColor,
       bool antiAlias
    ) 

    Parameters

    barcodePath
    Graphics path, which presents the barcode in vector form.
    barcodeWidth
    Barcode width, in units.
    barcodeHeight
    Barcode height, in units.
    paddingLeft
    Left padding, in units.
    paddingTop
    Top padding, in units.
    paddingRight
    Right padding, in units.
    paddingBottom
    Bottom padding, in units.
    horizontalResolution
    Bitmap horizontal resolution, in dpi.
    verticalResolution
    Bitmap vertical resolution, in dpi.
    units
    Units of measure.
    backgroundColor
    Background image color.
    barcodeColor
    Barcode color.
    antiAlias
    Specifies antialiased rendering of barcode path.

    Return Value

    Rasterized barcode image with exact physical dimensions.
    Remarks
    This method is obsolete, use the GetBarcodeAsBitmap(double, double, UnitOfMeasure) method instead.
    Requirements

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

    See Also