Property: EncodePolicy
(TBarcodeFmx2D_QRCode)
Indicates how to use the encoding mode in a QR Code barcode symbol.
Syntax:
type
{ Defined in the pfmxQRCodeCom unit }
TQRCode_EncodePolicy = (epMixingOptimal, epMixingQuick, epSingleMode);
property EncodePolicy: TQRCode_EncodePolicy;
Description:
The QR Code symbology offers four kinds of encoding mode, referred to as Numeric mode, Alphanumeric mode, Kanji mode and Byte mode respectively in decreasing order of encoding density.
This property indicates how to use these encoding mode by the component. It can be one of these values (defined in the pfmxQRCodeCom unit):
- epMixingOptimal: All 256 8-bits values are encoded by switching automatically between all 4 (the AllowKanjiMode property is set to true) or 3 (the Kanji mode will not be used if the AllowKanjiMode property is set to false) encoding modes. The optimal combination of encoding modes will be used in order to minimize the symbol size.
- epMixingQuick: All 256 8-bits values are encoded by switching automatically between all 4 (the AllowKanjiMode property is set to true) or 3 (the Kanji mode will not be used if the AllowKanjiMode property is set to false) encoding modes. The combination of encoding modes may not be the optimal one, in order to optimize encoding speed.
- epSingleMode: The encoding mode will be selected automatically and applied to entire symbol, based on the barcode text, in other words, the barcode text to be encoded will be analysed, and an appropriates lowest level (highest encoding density) encoding mode will be selected, in order to minimize the symbol size, and the encoding mode will not be switched in the sybmol. Note, the Kanji mode will not be used if the AllowKanjiMode property is set to false.
See also the "Encoding modes" section in the "TBarcodeFmx2D_QRCode" article.
Contents
Copyright © 2001-2024
Han-soft Corporation. All rights reserved.