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 As System.Integer, _
Optional ByVal As System.Boolean _
) As GcBitmap
public GcBitmap ToGcBitmap(
System.int ,
System.bool
)
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