A class representing the widths of bars in barcodes. More...
#include <PglBarWidths.h>
Instance Methods | |
(instancetype) | - init |
Initializes a new instance of the PglBarWidths class. | |
(instancetype) | - initWithNarrowBar:wideBar: |
Initializes a new instance of the PglBarWidths class with specified narrow and wide bar widths. | |
(NSString *) | - bcdMagnification1DWithType:printPlane:barWidths: |
Calculates the magnification of a 1D barcode with the specified type, print plane, and bar widths. | |
![]() | |
(instancetype) | - NS_UNAVAILABLE |
Additional Inherited Members | |
![]() | |
id< IRuler > | ruler |
Ruler to use for bar widths. | |
float | narrowBar |
Width of smallest bar. This is typically referred to as the X-dimension of the barcode. | |
float | wideBar |
Width of widest bar. This is typically a multiple of the NarrowBar in order for barcode scanners to differentiate bar widths. | |
A class representing the widths of bars in barcodes.
This class inherits from ABarWidths and provides functionality for initializing bar widths and calculating barcode magnifications.
- (NSString *) bcdMagnification1DWithType: | (BarcodeTypeEnum1D) | bcdType | |
printPlane: | (PrintPlane *) | pp | |
barWidths: | (PglBarWidths *) | barWidths |
Calculates the magnification of a 1D barcode with the specified type, print plane, and bar widths.
bcdType | The type of the 1D barcode. |
pp | The print plane to be used. |
barWidths | The bar widths to be used for magnification calculation. |
- (instancetype) init |
Initializes a new instance of the PglBarWidths class.
- (instancetype) initWithNarrowBar: | (float) | narrowBar | |
wideBar: | (float) | wideBar |
Initializes a new instance of the PglBarWidths class with specified narrow and wide bar widths.
narrowBar | The width of the narrow bar. |
wideBar | The width of the wide bar. |
Reimplemented from ABarWidths.