[]
        
(Showing Draft Content)

GrapeCity.Documents.Barcode.GcBarcode.ToGcBitmap

ToGcBitmap Method

ToGcBitmap(int, bool)

Renders the current barcode into a new instance of 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.

Declaration
public GcBitmap ToGcBitmap(int dpi = 300, bool aliased = false)
Public Function ToGcBitmap(Optional dpi As Integer = 300, Optional aliased As Boolean = False) As GcBitmap
Parameters
Type Name Description
int dpi

The resolution of the generated bitmap.

bool aliased

Whether the barcode is drawn without anti-aliasing

Returns
Type Description
GcBitmap

The newly created GcBitmap containing the image of the barcode.