VintaSoft Barcode .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Barcode.Wpf Namespace / BarcodeDrawingContextRenderer Class / GetBarcodeAsBitmap Methods / GetBarcodeAsBitmap(BarcodeStructureBase,Single,Single,Single,Single,Int32,Int32,BarcodeImagePixelFormat,Single) Method
Syntax Requirements SeeAlso
In This Topic
    GetBarcodeAsBitmap(BarcodeStructureBase,Single,Single,Single,Single,Int32,Int32,BarcodeImagePixelFormat,Single) Method (BarcodeDrawingContextRenderer)
    In This Topic
    Returns barcode as an image.
    Syntax
    'Declaration
    
    Public Overloads Function GetBarcodeAsBitmap( _
    ByVal barcodeStructure
    An object that contains information about barcode.
    As Vintasoft.Barcode.BarcodeStructure.BarcodeStructureBase, _
    ByVal barcodeX
    The barcode X-coordinate, in pixels, on image.
    As Single, _
    ByVal barcodeY
    The barcode Y-coordinate, in pixels, on image.
    As Single, _
    ByVal barcodeWidth
    The barcode width, in pixels.
    As Single, _
    ByVal barcodeHeight
    The barcode height, in pixels.
    As Single, _
    ByVal imageWidth
    The width of generated image.
    As Integer, _
    ByVal imageHeight
    The height of generated image.
    As Integer, _
    ByVal pixelFormat
    Pixel format of generated image.
    As Vintasoft.Barcode.BarcodeImagePixelFormat, _
    ByVal imageResolution
    The resolution of generated image.
    As Single _
    ) As System.Windows.Media.Imaging.BitmapSource

    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: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also