Aztec
Aztec
- Namespace: ceTe.DynamicBarcode.Creator
- Assemblies: DynamicBarcode.Creator.dll
Represents a Aztec barcode.
public class Aztec : Barcode
Public Class Aztec
Inherits Barcode
Inheritance: Object → Barcode → Aztec
Licensing Info
This class is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
The following example will Draw a Aztec barcode image.
Imports System
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
'Create a barcode object.
Dim barcode As Aztec = New Aztec("Hello World", AztecSymbolSize.Full)
'Draw barcode image.
barcode.Draw("C:\barcode.png", 300, ImageFormat.Png)
End Sub
End Module
using System;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
// Create a barcode object.
Aztec barcode = new Aztec("Hello World", AztecSymbolSize.Full);
// Draw barcode image.
barcode.Draw(@"C:\barcode.png", 300, ImageFormat.Png);
}
}
Remarks
This class can be used to draw a Aztec barcode image.
Constructors
Aztec(Byte[], AztecSymbolSize)
Initializes a new instance of the Aztec class.
public Aztec(Byte[] value, AztecSymbolSize size)
Public Sub New (value As Byte(), size As AztecSymbolSize)
Parameters
- value: Byte[]
The value of the barcode.
- size: AztecSymbolSize
The AztecSymbolSize of the barcode.
Licensing Info
This constructor is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Aztec(Byte[], AztecSymbolSize, Single)
Initializes a new instance of the Aztec class.
public Aztec(Byte[] value, AztecSymbolSize size, float xDimention)
Public Sub New (value As Byte(), size As AztecSymbolSize, xDimention As Single)
Parameters
- value: Byte[]
The value of the barcode.
- size: AztecSymbolSize
The AztecSymbolSize of the barcode.
- xDimention: Single
The xDimention of the barcode.
Licensing Info
This constructor is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Aztec(String, AztecSymbolSize)
Initializes a new instance of the Aztec class.
public Aztec(string value, AztecSymbolSize size)
Public Sub New (value As String, size As AztecSymbolSize)
Parameters
- value: String
The value of the barcode.
- size: AztecSymbolSize
The AztecSymbolSize of the barcode.
Licensing Info
This constructor is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Aztec(String, AztecSymbolSize, Single)
Initializes a new instance of the Aztec class.
public Aztec(string value, AztecSymbolSize size, float xDimention)
Public Sub New (value As String, size As AztecSymbolSize, xDimention As Single)
Parameters
- value: String
The value of the barcode.
- size: AztecSymbolSize
The AztecSymbolSize of the barcode.
- xDimention: Single
The xDimention of the barcode.
Licensing Info
This constructor is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Properties
AllowStructuredAppend
Gets or Sets a boolean indicating whether to allow structured append of the overflow barcodes.
public bool AllowStructuredAppend { get; set; }
Public Property AllowStructuredAppend As Boolean
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Remarks
If set to true , MessageID and Size should be set to a predefined value.
BackColor
Gets or sets the background color of the barcode. (Inherited from Barcode)
public Color BackColor { get; set; }
Public Property BackColor As Color
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
BarcodeMargin
Gets or Sets the margins of the barcode. (Inherited from Barcode)
public Margin BarcodeMargin { get; set; }
Public Property BarcodeMargin As Margin
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
BarColor
Gets or sets the bar color of the barcode. (Inherited from Barcode)
public Color BarColor { get; set; }
Public Property BarColor As Color
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
ErrorCorrection
Gets or Sets the error correction value.
public int ErrorCorrection { get; set; }
Public Property ErrorCorrection As Int32
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Remarks
Error correction value may be between 5% to 95%.
IsReaderInitializationSymbol
Gets or Sets a boolean representing if the barcode is a reader initialization symbol.
public bool IsReaderInitializationSymbol { get; set; }
Public Property IsReaderInitializationSymbol As Boolean
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Remarks
Setting true will mark the symbol as reader initialization symbol and the size of the symbol should be one of the following, R15xC15 Compact, R19xC19, R23xC23, R27xC27, R31xC31, R37xC37, R41xC41, R45xC45, R49xC49, R53xC53, R57xC57, R61xC61, R67xC67, R71xC71, R75xC75, R79xC79, R83xC83, R87xC87, R91xC91, R95xC95, R101xC101, R105xC105, R109xC109, however it is recommended to set Auto.
MessageID
Gets or Sets the message id for the overflow barcodes.
public string MessageID { get; set; }
Public Property MessageID As String
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Remarks
MessageID for the overflow barcodes. Default MessageID is 'A'. This is used only when AllowStructuredAppend is true .
ProcessTilde
Gets or Sets a boolean indicating whether to process tilde symbol in the input.
public bool ProcessTilde { get; set; }
Public Property ProcessTilde As Boolean
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Remarks
Settign true will check for ~ character and processes it for FNC1 or ECI characters.
Size
Gets the barcode size, AztecSymbolSize .
public AztecSymbolSize Size { get; }
Public Property Size As AztecSymbolSize
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Unit
Gets or sets the unit of the barcode. (Inherited from Barcode)
public UnitOfMeasurement Unit { get; set; }
Public Property Unit As UnitOfMeasurement
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Value
Gets the barocode value only if the string value is set.
public string Value { get; }
Public Property Value As String
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
XDimension
Gets or sets the XDimension of the barcode. (Inherited from Barcode)
public Nullable<float> XDimension { get; set; }
Public Property XDimension As Nullable(Of Single)
Property Value
Licensing Info
This property is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Methods
Draw(Single, ImageFormat)
Draw barcode image. (Inherited from Barcode)
public Byte[] Draw(float dpi, ImageFormat imageFormat)
Function Draw(dpi As Single, imageFormat As ImageFormat) As Byte()
Parameters
- dpi: Single
Image resolution for barcode image.
- imageFormat: ImageFormat
Image format for barcode image.
Returns
Image data as byte array.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
This example shows how to output the barcode image to a byte array.
Imports System
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
' Create a barcode object.
Dim barcode As Code11 = New Code11("12345678", 50)
' Save the barcode image to a byte array
Dim MyBarcodeData As Byte() = barcode.Draw(96, ImageFormat.Png)
End Sub
End Module
using System;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
// Create a barcode object.
Code11 barcode = new Code11("12345678", 50);
// Save the barcode image to a byte array
byte[] barcodeData = barcode.Draw(96, ImageFormat.Png);
}
}
Draw(Single, Single, ImageFormat)
Draw barcode image. (Inherited from Barcode)
public Byte[] Draw(float horizontalDpi, float verticalDpi, ImageFormat imageFormat)
Function Draw(horizontalDpi As Single, verticalDpi As Single, imageFormat As ImageFormat) As Byte()
Parameters
- horizontalDpi: Single
Horizontal resolution for barcode image.
- verticalDpi: Single
Vertical resolution for barcode image.
- imageFormat: ImageFormat
Image format for barcode image.
Returns
Image data as byte array.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
This example shows how to output the barcode image to a byte array.
Imports System
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
' Create a barcode object.
Dim barcode As Code11 = New Code11("12345678", 50)
' Save the barcode image to a byte array
Dim MyBarcodeData As Byte() = barcode.Draw(96, 96, ImageFormat.Png)
End Sub
End Module
using System;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
// Create a barcode object.
Code11 barcode = new Code11("12345678", 50);
// Save the barcode image to a byte array
byte[] barcodeData = barcode.Draw(96, 96, ImageFormat.Png);
}
}
Draw(String, Single, ImageFormat)
Draw barcode image. (Inherited from Barcode)
public void Draw(string filePath, float dpi, ImageFormat imageFormat)
Sub Draw(filePath As String, dpi As Single, imageFormat As ImageFormat)
Parameters
- filePath: String
Input file path to save image.
- dpi: Single
Image resolution for barcode image.
- imageFormat: ImageFormat
Image format for barcode image.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
The following example will Draw a Codabar barcode image.
Imports System
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
'Create a barcode object.
Dim barcode As Codabar = New Codabar("A1234A", 100)
'Draw barcode image.
barcode.Draw("C:\barcode.png", 96, ImageFormat.Png)
End Sub
End Module
using System;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
// Create a barcode object.
Codabar barcode = new Codabar("A1234A", 100);
// Draw barcode image.
barcode.Draw(@"C:\barcode.png", 96, ImageFormat.Png);
}
}
Draw(String, Single, Single, ImageFormat)
Draw barcode image. (Inherited from Barcode)
public void Draw(string filePath, float horizontalDpi, float verticalDpi, ImageFormat imageFormat)
Sub Draw(filePath As String, horizontalDpi As Single, verticalDpi As Single, imageFormat As ImageFormat)
Parameters
- filePath: String
Input file path to save image.
- horizontalDpi: Single
Horizontal resolution for barcode image.
- verticalDpi: Single
Vertical resolution for barcode image.
- imageFormat: ImageFormat
Image format for barcode image.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
The following example will Draw a Codabar barcode image.
Imports System
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
'Create a barcode object.
Dim barcode As Codabar = New Codabar("A1234A", 100)
'Draw barcode image.
barcode.Draw("C:\barcode.png", 96, 96, ImageFormat.Png)
End Sub
End Module
using System;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
// Create a barcode object.
Codabar barcode = new Codabar("A1234A", 100);
// Draw barcode image.
barcode.Draw(@"C:\barcode.png", 96, 96, ImageFormat.Png);
}
}
DrawToBitmap(Single)
Returns bitmap object of barcode image. (Inherited from Barcode)
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 https://www.dynamicpdf.com/ultimate-subscription 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. (Inherited from Barcode)
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 https://www.dynamicpdf.com/ultimate-subscription 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);
}
}
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
GetOverflowAztec()
Gets a new instance of the Aztec class.
public Aztec GetOverflowAztec()
Function GetOverflowAztec() As Aztec
Returns
Returns a Aztec object.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
The following example shows how to create the Aztec barcodes in cases where more than one barcode is required to represent the data.
Imports System
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
Dim MyFileCount As Integer = 1
' Create Aztec barcode object.
Dim MyAztecBarcode As Aztec = New Aztec("Aztec barcode with overflows", AztecSymbolSize.R19xC19)
Do
Dim MyTempAztecBarcode As Aztec = Nothing
' Get the Overflow Aztec barcode.
MyTempAztecBarcode = MyAztecBarcode.GetOverflowAztec()
' Save the Aztec barcode as an image.
MyAztecBarcode.Draw("Aztec_" + MyFileCount.ToString() + ".png", 72, ImageFormat.Png)
MyAztecBarcode = MyTempAztecBarcode
MyFileCount += 1
Loop While Not MyAztecBarcode Is Nothing End Sub
End Module
using System;
using ceTe.DynamicBarcode.Creator;
class MyClass
{static void Main(){ int fileCount = 1;
// Create Aztec barcode object. Aztec AztecBarcode = new Aztec("Aztec barcode with overflows", AztecSymbolSize.R19xC19);
do
{
Aztec tempAztecBarcode = null;
// Get the Overflow Aztec barcode.
tempAztecBarcode = AztecBarcode.GetOverflowAztec();
// Save the Aztec barcode as an image.
AztecBarcode.Draw("Aztec_" + fileCount.ToString() + ".png", 72, ImageFormat.Png);
AztecBarcode = tempAztecBarcode;
fileCount++;
} while (AztecBarcode != null);}
}
Remarks
This method returns a new Aztec object that contains the remaining data that did not fit.
GetRecommendedQuietZone(Single, Single)
Gets the recommanded quietzone of the barcode. (Inherited from Barcode)
public Margin GetRecommendedQuietZone(float horizontalDpi, float verticalDpi)
Function GetRecommendedQuietZone(horizontalDpi As Single, verticalDpi As Single) As Margin
Parameters
- horizontalDpi: Single
The horizontal dpi of the barcode.
- verticalDpi: Single
The vertical dpi of the barcode.
Returns
The recommanded quietzone of the barcode.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
GetRequiredSize(Single, Single)
Returns the size required to display the full barcode. (Inherited from Barcode)
public Size GetRequiredSize(float horizontalDpi, float verticalDpi)
Function GetRequiredSize(horizontalDpi As Single, verticalDpi As Single) As Size
Parameters
- horizontalDpi: Single
Resolution of barcode image.
- verticalDpi: Single
Horizontal and vertical resolution of barcode image.
Returns
A value representing the required size.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
Examples
The following example will show how to get size required to display the full barcode.
Imports System
Imports System.Drawing
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
' Create a barcode object.
Dim barcode As Codabar = New Codabar("A1234A", 100)
' Get the SizeF object which contains Height and Width of a barcode.
Dim size As SizeF = barcode.GetRequiredSize(96, 96)
Dim width As Single = size.Width
Dim height As Single = size.Height
' Draw barcode image.
barcode.Draw("C:\barcode.png", 96, ImageFormat.Png)
End Sub
End Module
using System;
using System.Drawing;
using ceTe.DynamicBarcode.Creator;
class MyClass
{
static void Main()
{
// Create a barcode object.
Codabar barcode = new Codabar("A1234A", 100);
// Get the SizeF object which contains Height and Width of a barcode.
SizeF size = barcode.GetRequiredSize(96, 96);
float width = size.Width;
float height = size.Height;
// Draw barcode image.
barcode.Draw(@"C:\barcode.png", 96, ImageFormat.Png);
}
}
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .
Licensing Info
This method is a DynamicBarcode Creator feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicBarcode Creator selected.
- A DynamicBarcode Creator for .NET v2.X Developer license.