Barcode generation parameters. More...
Inherits System::Object.
Public Member Functions | |
System::SharedPtr< Unit > | get_XDimension () const |
x-dimension is the smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if BaseGenerationParameters::AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. More... | |
void | set_XDimension (System::SharedPtr< Unit > value) |
x-dimension is the smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if BaseGenerationParameters::AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. More... | |
System::SharedPtr< Unit > | get_BarHeight () const |
Height of 1D barcodes' bars in Unit value. Ignored if BaseGenerationParameters::AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. More... | |
void | set_BarHeight (System::SharedPtr< Unit > value) |
Height of 1D barcodes' bars in Unit value. Ignored if BaseGenerationParameters::AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation. More... | |
System::Drawing::Color | get_BarColor () const |
Bars color. Default value: Color.Black. More... | |
void | set_BarColor (System::Drawing::Color value) |
Bars color. Default value: Color.Black. More... | |
System::SharedPtr< Aspose::BarCode::Generation::Padding > | get_Padding () const |
Barcode paddings. Default value: 5pt 5pt 5pt 5pt. More... | |
bool | get_ChecksumAlwaysShow () const |
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes. More... | |
void | set_ChecksumAlwaysShow (bool value) |
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes. More... | |
EnableChecksum | get_IsChecksumEnabled () const |
void | set_IsChecksumEnabled (EnableChecksum value) |
bool | get_EnableEscape () const |
Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters. More... | |
void | set_EnableEscape (bool value) |
Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters. More... | |
bool | get_ThrowExceptionWhenCodeTextIncorrect () const |
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. More... | |
void | set_ThrowExceptionWhenCodeTextIncorrect (bool value) |
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect. More... | |
float | get_WideNarrowRatio () |
Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard More... | |
void | set_WideNarrowRatio (float value) |
Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard More... | |
System::SharedPtr< CodetextParameters > | get_CodeTextParameters () const |
Codetext parameters. More... | |
bool | get_FilledBars () const |
Gets a value indicating whether bars filled. Only for 1D barcodes. Default value: true. More... | |
void | set_FilledBars (bool value) |
Sets a value indicating whether bars filled. Only for 1D barcodes. Default value: true. More... | |
System::SharedPtr< Unit > | get_BarWidthReduction () const |
Get or sets bars reduction value that is used to compensate ink spread while printing. Default value: 0 More... | |
void | set_BarWidthReduction (System::SharedPtr< Unit > value) |
Get or sets bars reduction value that is used to compensate ink spread while printing. Default value: 0 More... | |
System::SharedPtr< PostalParameters > | get_Postal () const |
Postal parameters. Used for Postnet, Planet. More... | |
System::SharedPtr< PatchCodeParameters > | get_PatchCode () const |
PatchCode parameters. More... | |
System::SharedPtr< AustralianPostParameters > | get_AustralianPost () const |
AustralianPost barcode parameters. More... | |
System::SharedPtr< DataBarParameters > | get_DataBar () const |
Databar parameters. More... | |
System::SharedPtr< GS1CompositeBarParameters > | get_GS1CompositeBar () const |
GS1 Composite Bar parameters. More... | |
void | set_GS1CompositeBar (System::SharedPtr< GS1CompositeBarParameters > value) |
GS1 Composite Bar parameters. More... | |
System::SharedPtr< CodablockParameters > | get_Codablock () const |
Codablock parameters. More... | |
System::SharedPtr< DataMatrixParameters > | get_DataMatrix () const |
DataMatrix parameters. More... | |
System::SharedPtr< Code16KParameters > | get_Code16K () const |
Code16K parameters. More... | |
System::SharedPtr< DotCodeParameters > | get_DotCode () const |
DotCode parameters. More... | |
System::SharedPtr< ITFParameters > | get_ITF () const |
ITF parameters. More... | |
System::SharedPtr< Pdf417Parameters > | get_Pdf417 () const |
PDF417 parameters. More... | |
System::SharedPtr< QrParameters > | get_QR () const |
QR, MicroQR and RectMicroQR parameters. More... | |
System::SharedPtr< SupplementParameters > | get_Supplement () const |
Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN. More... | |
System::SharedPtr< MaxiCodeParameters > | get_MaxiCode () const |
MaxiCode parameters. More... | |
System::SharedPtr< AztecParameters > | get_Aztec () const |
Aztec parameters. More... | |
System::SharedPtr< Code128Parameters > | get_Code128 () const |
Code128 parameters. More... | |
System::SharedPtr< CodabarParameters > | get_Codabar () const |
Codabar parameters. More... | |
System::SharedPtr< CouponParameters > | get_Coupon () const |
Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon. More... | |
System::SharedPtr< HanXinParameters > | get_HanXin () const |
HanXin parameters. More... | |
Public Member Functions inherited from System::Object | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared reference counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Additional Inherited Members | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
Static Public Member Functions inherited from System::Object | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Implements C# typeof(System.Object) construct. More... | |
Barcode generation parameters.
System::SharedPtr<AustralianPostParameters> Aspose::BarCode::Generation::BarcodeParameters::get_AustralianPost | ( | ) | const |
AustralianPost barcode parameters.
System::SharedPtr<AztecParameters> Aspose::BarCode::Generation::BarcodeParameters::get_Aztec | ( | ) | const |
Aztec parameters.
System::Drawing::Color Aspose::BarCode::Generation::BarcodeParameters::get_BarColor | ( | ) | const |
Bars color. Default value: Color.Black.
System::SharedPtr<Unit> Aspose::BarCode::Generation::BarcodeParameters::get_BarHeight | ( | ) | const |
Height of 1D barcodes' bars in Unit value. Ignored if BaseGenerationParameters::AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
System::SharedPtr<Unit> Aspose::BarCode::Generation::BarcodeParameters::get_BarWidthReduction | ( | ) | const |
Get or sets bars reduction value that is used to compensate ink spread while printing. Default value: 0
bool Aspose::BarCode::Generation::BarcodeParameters::get_ChecksumAlwaysShow | ( | ) | const |
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
System::SharedPtr<CodabarParameters> Aspose::BarCode::Generation::BarcodeParameters::get_Codabar | ( | ) | const |
Codabar parameters.
System::SharedPtr<CodablockParameters> Aspose::BarCode::Generation::BarcodeParameters::get_Codablock | ( | ) | const |
Codablock parameters.
System::SharedPtr<Code128Parameters> Aspose::BarCode::Generation::BarcodeParameters::get_Code128 | ( | ) | const |
Code128 parameters.
System::SharedPtr<Code16KParameters> Aspose::BarCode::Generation::BarcodeParameters::get_Code16K | ( | ) | const |
Code16K parameters.
System::SharedPtr<CodetextParameters> Aspose::BarCode::Generation::BarcodeParameters::get_CodeTextParameters | ( | ) | const |
Codetext parameters.
System::SharedPtr<CouponParameters> Aspose::BarCode::Generation::BarcodeParameters::get_Coupon | ( | ) | const |
Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
System::SharedPtr<DataBarParameters> Aspose::BarCode::Generation::BarcodeParameters::get_DataBar | ( | ) | const |
Databar parameters.
System::SharedPtr<DataMatrixParameters> Aspose::BarCode::Generation::BarcodeParameters::get_DataMatrix | ( | ) | const |
DataMatrix parameters.
System::SharedPtr<DotCodeParameters> Aspose::BarCode::Generation::BarcodeParameters::get_DotCode | ( | ) | const |
DotCode parameters.
bool Aspose::BarCode::Generation::BarcodeParameters::get_EnableEscape | ( | ) | const |
Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \CR stands for CR.
bool Aspose::BarCode::Generation::BarcodeParameters::get_FilledBars | ( | ) | const |
Gets a value indicating whether bars filled. Only for 1D barcodes. Default value: true.
System::SharedPtr<GS1CompositeBarParameters> Aspose::BarCode::Generation::BarcodeParameters::get_GS1CompositeBar | ( | ) | const |
GS1 Composite Bar parameters.
This sample shows how to create and save a GS1 Composite Bar image. Note that 1D codetext and 2D codetext are separated by symbol '|'
System::SharedPtr<HanXinParameters> Aspose::BarCode::Generation::BarcodeParameters::get_HanXin | ( | ) | const |
HanXin parameters.
EnableChecksum Aspose::BarCode::Generation::BarcodeParameters::get_IsChecksumEnabled | ( | ) | const |
Enable checksum during generation 1D barcodes.
Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible.
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar
Checksum always used: Rest symbology
System::SharedPtr<ITFParameters> Aspose::BarCode::Generation::BarcodeParameters::get_ITF | ( | ) | const |
ITF parameters.
System::SharedPtr<MaxiCodeParameters> Aspose::BarCode::Generation::BarcodeParameters::get_MaxiCode | ( | ) | const |
MaxiCode parameters.
System::SharedPtr<Aspose::BarCode::Generation::Padding> Aspose::BarCode::Generation::BarcodeParameters::get_Padding | ( | ) | const |
Barcode paddings. Default value: 5pt 5pt 5pt 5pt.
System::SharedPtr<PatchCodeParameters> Aspose::BarCode::Generation::BarcodeParameters::get_PatchCode | ( | ) | const |
PatchCode parameters.
System::SharedPtr<Pdf417Parameters> Aspose::BarCode::Generation::BarcodeParameters::get_Pdf417 | ( | ) | const |
PDF417 parameters.
System::SharedPtr<PostalParameters> Aspose::BarCode::Generation::BarcodeParameters::get_Postal | ( | ) | const |
Postal parameters. Used for Postnet, Planet.
System::SharedPtr<QrParameters> Aspose::BarCode::Generation::BarcodeParameters::get_QR | ( | ) | const |
QR, MicroQR and RectMicroQR parameters.
System::SharedPtr<SupplementParameters> Aspose::BarCode::Generation::BarcodeParameters::get_Supplement | ( | ) | const |
Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.
bool Aspose::BarCode::Generation::BarcodeParameters::get_ThrowExceptionWhenCodeTextIncorrect | ( | ) | const |
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect.
float Aspose::BarCode::Generation::BarcodeParameters::get_WideNarrowRatio | ( | ) |
Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard
ArgumentException |
The WideNarrowRatio parameter value is less than or equal to 0.
System::SharedPtr<Unit> Aspose::BarCode::Generation::BarcodeParameters::get_XDimension | ( | ) | const |
x-dimension is the smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if BaseGenerationParameters::AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
void Aspose::BarCode::Generation::BarcodeParameters::set_BarColor | ( | System::Drawing::Color | value | ) |
Bars color. Default value: Color.Black.
void Aspose::BarCode::Generation::BarcodeParameters::set_BarHeight | ( | System::SharedPtr< Unit > | value | ) |
Height of 1D barcodes' bars in Unit value. Ignored if BaseGenerationParameters::AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
void Aspose::BarCode::Generation::BarcodeParameters::set_BarWidthReduction | ( | System::SharedPtr< Unit > | value | ) |
Get or sets bars reduction value that is used to compensate ink spread while printing. Default value: 0
void Aspose::BarCode::Generation::BarcodeParameters::set_ChecksumAlwaysShow | ( | bool | value | ) |
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
void Aspose::BarCode::Generation::BarcodeParameters::set_EnableEscape | ( | bool | value | ) |
Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \CR stands for CR.
void Aspose::BarCode::Generation::BarcodeParameters::set_FilledBars | ( | bool | value | ) |
Sets a value indicating whether bars filled. Only for 1D barcodes. Default value: true.
void Aspose::BarCode::Generation::BarcodeParameters::set_GS1CompositeBar | ( | System::SharedPtr< GS1CompositeBarParameters > | value | ) |
GS1 Composite Bar parameters.
This sample shows how to create and save a GS1 Composite Bar image. Note that 1D codetext and 2D codetext are separated by symbol '|'
void Aspose::BarCode::Generation::BarcodeParameters::set_IsChecksumEnabled | ( | EnableChecksum | value | ) |
Enable checksum during generation 1D barcodes.
Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible.
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar
Checksum always used: Rest symbology
void Aspose::BarCode::Generation::BarcodeParameters::set_ThrowExceptionWhenCodeTextIncorrect | ( | bool | value | ) |
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect.
void Aspose::BarCode::Generation::BarcodeParameters::set_WideNarrowRatio | ( | float | value | ) |
Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard
ArgumentException |
The WideNarrowRatio parameter value is less than or equal to 0.
void Aspose::BarCode::Generation::BarcodeParameters::set_XDimension | ( | System::SharedPtr< Unit > | value | ) |
x-dimension is the smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if BaseGenerationParameters::AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.