Calculates the barcode size that is going to be written.
'Declaration
Public Function CalculateBarcodeSize( _
ByVal As Integer, _
ByVal As Integer, _
ByVal As BarcodeData, _
ByVal As BarcodeColor, _
ByVal As BarcodeWriteFlags, _
ByVal As Barcode1d, _
ByVal As BarcodeWritePdf, _
ByVal As BarcodeWriteDatamatrix, _
ByVal As BarcodeWriteQr _
) As LeadRect
'Usage
Dim instance As BarcodeEngine
Dim dpiX As Integer
Dim dpiY As Integer
Dim data As BarcodeData
Dim codeColor As BarcodeColor
Dim flags As BarcodeWriteFlags
Dim code1d As Barcode1d
Dim codePdf As BarcodeWritePdf
Dim codeDatamatrix As BarcodeWriteDatamatrix
Dim codeQr As BarcodeWriteQr
Dim value As LeadRect
value = instance.CalculateBarcodeSize(dpiX, dpiY, data, codeColor, flags, code1d, codePdf, codeDatamatrix, codeQr)
function Leadtools.Barcode.Deprecated.BarcodeEngine.CalculateBarcodeSize(
dpiX ,
dpiY ,
data ,
codeColor ,
flags ,
code1d ,
codePdf ,
codeDatamatrix ,
codeQr
)
Parameters
- dpiX
- The X-axis (along width) resolution of the RasterImage of the barcode being written.
- dpiY
- The Y-axis (along height) resolution of the RasterImage of the barcode being written.
- data
- BarcodeData class that contains the barcode information to be written on the image.
- codeColor
- BarcodeColor class that contains the color information to be written on the image.
- flags
- Flags that indicate the method behavior. Values can be combined when appropriate, by using a bitwise OR (|). Pass BarcodeWriteFlags.None to use the default values, based on the type of barcode that has been written.
- code1d
- Barcode1d class that contains the information about linear barcodes.
- codePdf
- BarcodeWritePdf class that contains the information about PDF417 and MicroPDF417 barcodes.
- codeDatamatrix
- BarcodeWriteDatamatrix class that contains the information about Data Matrix barcodes.
- codeQr
- BarcodeWriteQr class that contains the information about QR barcodes.
Return Value
LeadRect with the barcode size before writing the barcode over the image.