VintaSoft Barcode .NET SDK v10.0
Vintasoft.WpfBarcode Namespace / BarcodeWriter Class / CreateBitmapFromBarcodePath Method
Path geometry, 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.
Backgroud brush.
Barcode brush.




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 PathGeometry, _
       ByVal barcodeWidth As Double, _
       ByVal barcodeHeight As Double, _
       ByVal paddingLeft As Double, _
       ByVal paddingTop As Double, _
       ByVal paddingRight As Double, _
       ByVal paddingBottom As Double, _
       ByVal horizontalResolution As Double, _
       ByVal verticalResolution As Double, _
       ByVal units As UnitOfMeasure, _
       ByVal backgroundBrush As Brush, _
       ByVal barcodeBrush As Brush _
    ) As BitmapSource
    'Usage
     
    Dim barcodePath As PathGeometry
    Dim barcodeWidth As Double
    Dim barcodeHeight As Double
    Dim paddingLeft As Double
    Dim paddingTop As Double
    Dim paddingRight As Double
    Dim paddingBottom As Double
    Dim horizontalResolution As Double
    Dim verticalResolution As Double
    Dim units As UnitOfMeasure
    Dim backgroundBrush As Brush
    Dim barcodeBrush As Brush
    Dim value As BitmapSource
     
    value = BarcodeWriter.CreateBitmapFromBarcodePath(barcodePath, barcodeWidth, barcodeHeight, paddingLeft, paddingTop, paddingRight, paddingBottom, horizontalResolution, verticalResolution, units, backgroundBrush, barcodeBrush)
    [Obsolete("This method is obsolete, use the GetBarcodeAsBitmap(double, double, UnitOfMeasure) method instead.")]
    public static BitmapSource CreateBitmapFromBarcodePath( 
       PathGeometry barcodePath,
       double barcodeWidth,
       double barcodeHeight,
       double paddingLeft,
       double paddingTop,
       double paddingRight,
       double paddingBottom,
       double horizontalResolution,
       double verticalResolution,
       UnitOfMeasure units,
       Brush backgroundBrush,
       Brush barcodeBrush
    )
    [Obsolete("This method is obsolete, use the GetBarcodeAsBitmap(double, double, UnitOfMeasure) method instead.")]
    public: static BitmapSource* CreateBitmapFromBarcodePath( 
       PathGeometry* barcodePath,
       double barcodeWidth,
       double barcodeHeight,
       double paddingLeft,
       double paddingTop,
       double paddingRight,
       double paddingBottom,
       double horizontalResolution,
       double verticalResolution,
       UnitOfMeasure units,
       Brush* backgroundBrush,
       Brush* barcodeBrush
    ) 
    [Obsolete("This method is obsolete, use the GetBarcodeAsBitmap(double, double, UnitOfMeasure) method instead.")]
    public:
    static BitmapSource^ CreateBitmapFromBarcodePath( 
       PathGeometry^ barcodePath,
       double barcodeWidth,
       double barcodeHeight,
       double paddingLeft,
       double paddingTop,
       double paddingRight,
       double paddingBottom,
       double horizontalResolution,
       double verticalResolution,
       UnitOfMeasure units,
       Brush^ backgroundBrush,
       Brush^ barcodeBrush
    ) 

    Parameters

    barcodePath
    Path geometry, 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.
    backgroundBrush
    Backgroud brush.
    barcodeBrush
    Barcode brush.

    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