MacroPdf417
MacroPdf417
- Namespace: ceTe.DynamicBarcode.Creator
- Assemblies: DynamicBarcode.Creator.dll
Represents a MacroPdf417 barcode.
public class MacroPdf417 : Pdf417
Public Class MacroPdf417
Inherits Pdf417
Inheritance: Object → Barcode → Pdf417 → MacroPdf417
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 MacroPdf417 barcode image.
Imports System
Imports ceTe.DynamicBarcode.Creator
Module MyModule
Sub Main()
'Create a barcode object.
Dim barcode As MacroPdf417 = New MacroPdf417("Hello World",3)
'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.
MacroPdf417 barcode = new MacroPdf417("Hello World",3);
// Draw barcode image.
barcode.Draw(@"C:\barcode.png", 300, ImageFormat.Png);
}
}
Remarks
This class can be used to draw a MacroPdf417 barcode image.
Constructors
MacroPdf417(Byte[], Int32)
Initializes a new instance of the MacroPdf417 class.
public MacroPdf417(Byte[] data, int columns)
Public Sub New (data As Byte(), columns As Integer)
Parameters
- data: Byte[]
Byte array to be encoded.
- columns: Int32
Columns of the macro PDF417 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.
MacroPdf417(Byte[], Int32, Int32)
Initializes a new instance of the MacroPdf417 class.
public MacroPdf417(Byte[] data, int columns, int rows)
Public Sub New (data As Byte(), columns As Integer, rows As Integer)
Parameters
- data: Byte[]
Byte array to be encoded.
- columns: Int32
Columns of the macro PDF417 barcode.
- rows: Int32
Rows of the macro PDF417 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.
MacroPdf417(String, Int32)
Initializes a new instance of the MacroPdf417 class.
public MacroPdf417(string text, int columns)
Public Sub New (text As String, columns As Integer)
Parameters
- text: String
String to be encoded.
- columns: Int32
Columns of the macro PDF417 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.
MacroPdf417(String, Int32, Int32)
Initializes a new instance of the MacroPdf417 class.
public MacroPdf417(string text, int columns, int rows)
Public Sub New (text As String, columns As Integer, rows As Integer)
Parameters
- text: String
String to be encoded.
- columns: Int32
Columns of the macro PDF417 barcode.
- rows: Int32
Rows of the macro PDF417 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
Address
Gets or sets included address in the macro PDF417 barcode.
public string Address { get; set; }
Public Property Address 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.
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.
Compaction
Gets or sets the type of compaction. (Inherited from Pdf417)
public Pdf417Compaction Compaction { get; set; }
Public Property Compaction As Pdf417Compaction
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.
CompactPdf417
Gets or sets the Compact Pdf417. (Inherited from Pdf417)
public bool CompactPdf417 { get; set; }
Public Property CompactPdf417 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.
ErrorCorrectionLevel
Gets or sets the error correction level for the PDF417 barcode. (Inherited from Pdf417)
public Pdf417ErrorCorrectionLevel ErrorCorrectionLevel { get; set; }
Public Property ErrorCorrectionLevel As Pdf417ErrorCorrectionLevel
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.
FileName
Gets or sets included file name in the macro PDF417 barcode.
public string FileName { get; set; }
Public Property FileName 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.
IncludeChecksum
Specifies whether check sum should be included in macro PDF417 barcode or not.
public bool IncludeChecksum { get; set; }
Public Property IncludeChecksum 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.
IncludeFileSize
Specifies whether file size should be included in macro PDF417 barcode or not.
public bool IncludeFileSize { get; set; }
Public Property IncludeFileSize 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.
IncludeTimestamp
Specifies whether time stamp should be included in macro PDF417 barcode or not.
public bool IncludeTimestamp { get; set; }
Public Property IncludeTimestamp 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.
ModuleSizeRatio
Gets or sets the ModuleSizeRatio of barcode. This is the ratio of the height and the width of one module in barcode. (Inherited from Pdf417)
public float ModuleSizeRatio { get; set; }
Public Property ModuleSizeRatio As 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.
Sender
Gets or sets included sender in the macro PDF417 barcode.
public string Sender { get; set; }
Public Property Sender 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.
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.
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.
GetOverflowMacroPdf417()
Gets a new instance of the MacroPdf417 class.
public MacroPdf417 GetOverflowMacroPdf417()
Function GetOverflowMacroPdf417() As MacroPdf417
Returns
Returns a MacroPdf417 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 MacroPdf417 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 MacroPdf417 barcode object.
Dim MyMacroPdf417Barcode As MacroPdf417 = New MacroPdf417("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit.", 2, 10)
Do
Dim MyTempMacroPdf417Barcode As MacroPdf417 = Nothing
' Get the Overflow MacroPdf417 barcode.
MyTempMacroPdf417Barcode = MyMacroPdf417Barcode.GetOverflowMacroPdf417()
' Save the MacroPdf417 barcode as an image.
MyMacroPdf417Barcode.Draw("MacroPdf417_" + MyFileCount.ToString() + ".png", 72, ImageFormat.Png)
MyMacroPdf417Barcode = MyTempMacroPdf417Barcode
MyFileCount += 1
Loop While Not MyMacroPdf417Barcode Is Nothing End Sub
End Module
using System;
using ceTe.DynamicBarcode.Creator;
class MyClass
{static void Main(){ int fileCount = 1;
// Create MacroPdf417 barcode object. MacroPdf417 macroPdf417Barcode = new MacroPdf417("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sit.", 2, 10);
do
{
MacroPdf417 tempMacroPdf417Barcode = null;
// Get the Overflow MacroPdf417 barcode.
tempMacroPdf417Barcode = macroPdf417Barcode.GetOverflowMacroPdf417();
// Save the MacroPdf417 barcode as an image.
macroPdf417Barcode.Draw("MacroPdf417_" + fileCount.ToString() + ".png", 72, ImageFormat.Png);
macroPdf417Barcode = tempMacroPdf417Barcode;
fileCount++;
} while (macroPdf417Barcode != null);}
}
Remarks
This method returns a new MacroPdf417 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.
SetFileID(Int32)
Sets the file ID in the macro PDF417 barcode.
public void SetFileID(int fileId)
Sub SetFileID(fileId As Integer)
Parameters
- fileId: Int32
file ID as integer of the MacroPdf417.
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.
SetFileID(Int32[])
Sets the file ID array of numbers from 0 to 899 in the macro PDF417 barcode.
public void SetFileID(Int32[] fileIdArray)
Sub SetFileID(fileIdArray As Int32[])
Parameters
- fileIdArray: Int32[]
Array of numbers from 0 to 899.
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.