Barcode.DrawToBitmap
Overloads
DrawToBitmap(Single) | Returns bitmap object of barcode image. |
DrawToBitmap(Single, Single) | Returns bitmap object of barcode image. |
DrawToBitmap(Single)
Returns bitmap object of barcode image.
public Bitmap DrawToBitmap(float dpi)
Function DrawToBitmap(dpi As Single) As Bitmap
Parameters
- dpi
- Single
Image resolution for barcode image.
Returns
A value representing bitmap image object.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
TThis example shows how to output the barcode image as a Bitmap.Imports System
Imports System.Drawing
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
' Create a barcode object.
Dim barcode As Ean8 = New Ean8("12345670")
' Save the barcode as a BitMap
Dim MyBarcodeBitmap As Bitmap = barcode.DrawToBitmap(96)
End Sub
End Module
using System;
using System.Drawing;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
// Create a barcode object.
Ean8 barcode = new Ean8("12345670");
// Save the barcode as a BitMap
Bitmap MyBarcodeBitmap = barcode.DrawToBitmap(96);
}
}
DrawToBitmap(Single, Single)
Returns bitmap object of barcode image.
public Bitmap DrawToBitmap(float horizontalDpi, float verticalDpi)
Function DrawToBitmap(horizontalDpi As Single, verticalDpi As Single) As Bitmap
Parameters
- horizontalDpi
- Single
Horizontal resolution for barcode image.
- verticalDpi
- Single
Vertical resolution for barcode image.
Returns
A value representing bitmap image object.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
TThis example shows how to output the barcode image as a Bitmap.Imports System
Imports System.Drawing
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
' Create a barcode object.
Dim barcode As Ean8 = New Ean8("12345670")
' Save the barcode as a BitMap
Dim MyBarcodeBitmap As Bitmap = barcode.DrawToBitmap(96, 96)
End Sub
End Module
using System;
using System.Drawing;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
// Create a barcode object.
Ean8 barcode = new Ean8("12345670");
// Save the barcode as a BitMap
Bitmap MyBarcodeBitmap = barcode.DrawToBitmap(96, 96);
}
}