Document Solutions for PDF
GrapeCity.Documents.Barcode Assembly / GrapeCity.Documents.Barcode Namespace / GcBarcode Class / ToGcBitmap Method
The resolution of the generated bitmap.
Whether the barcode is drawn without anti-aliasing

In This Topic
    ToGcBitmap Method (GcBarcode)
    In This Topic
    Renders the current barcode into a new instance of GrapeCity.Documents.Imaging.GcBitmap with the specified resolution. It is the responsibility of the caller to dispose the returned bitmap after use.

    Note that when the bitmap is drawn on a GcPdfGraphics, it must not be disposed until after the target PDF is saved.

    Syntax
    'Declaration
     
    Public Function ToGcBitmap( _
       Optional ByVal dpi As System.Integer, _
       Optional ByVal aliased As System.Boolean _
    ) As GcBitmap
    public GcBitmap ToGcBitmap( 
       System.int dpi,
       System.bool aliased
    )

    Parameters

    dpi
    The resolution of the generated bitmap.
    aliased
    Whether the barcode is drawn without anti-aliasing

    Return Value

    The newly created GrapeCity.Documents.Imaging.GcBitmap containing the image of the barcode.
    See Also