VintaSoft Barcode .NET SDK v10.0
Vintasoft.WpfBarcode Namespace / BarcodeDrawingContextRenderer Class / GetBarcodeAsBitmap Method / GetBarcodeAsBitmap(BarcodeStructureBase,Single,Single,Single,Single,Int32,Int32,BarcodeImagePixelFormat,Single) Method
An object that contains information about barcode.
The barcode X-coordinate, in pixels, on image.
The barcode Y-coordinate, in pixels, on image.
The barcode width, in pixels.
The barcode height, in pixels.
The width of generated image.
The height of generated image.
Pixel format of generated image.
The resolution of generated image.




In This Topic
    GetBarcodeAsBitmap(BarcodeStructureBase,Single,Single,Single,Single,Int32,Int32,BarcodeImagePixelFormat,Single) Method
    In This Topic
    Returns barcode as an image.
    Syntax
    'Declaration
     
    Public Overloads Function GetBarcodeAsBitmap( _
       ByVal barcodeStructure As BarcodeStructureBase, _
       ByVal barcodeX As Single, _
       ByVal barcodeY As Single, _
       ByVal barcodeWidth As Single, _
       ByVal barcodeHeight As Single, _
       ByVal imageWidth As Integer, _
       ByVal imageHeight As Integer, _
       ByVal pixelFormat As BarcodeImagePixelFormat, _
       ByVal imageResolution As Single _
    ) As BitmapSource
    'Usage
     
    Dim instance As BarcodeDrawingContextRenderer
    Dim barcodeStructure As BarcodeStructureBase
    Dim barcodeX As Single
    Dim barcodeY As Single
    Dim barcodeWidth As Single
    Dim barcodeHeight As Single
    Dim imageWidth As Integer
    Dim imageHeight As Integer
    Dim pixelFormat As BarcodeImagePixelFormat
    Dim imageResolution As Single
    Dim value As BitmapSource
     
    value = instance.GetBarcodeAsBitmap(barcodeStructure, barcodeX, barcodeY, barcodeWidth, barcodeHeight, imageWidth, imageHeight, pixelFormat, imageResolution)

    Parameters

    barcodeStructure
    An object that contains information about barcode.
    barcodeX
    The barcode X-coordinate, in pixels, on image.
    barcodeY
    The barcode Y-coordinate, in pixels, on image.
    barcodeWidth
    The barcode width, in pixels.
    barcodeHeight
    The barcode height, in pixels.
    imageWidth
    The width of generated image.
    imageHeight
    The height of generated image.
    pixelFormat
    Pixel format of generated image.
    imageResolution
    The resolution of generated image.

    Return Value

    System.Windows.Media.Imaging.BitmapSource that contains rendered barcode.
    Requirements

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

    See Also