'Declaration
Public Overloads Function DrawBarcodeQrCode( _ ByVal Data As String, _ ByVal EncodingMode As BarcodeQREncodingMode, _ ByVal ErrorCorrectionLevel As BarcodeQRErrorCorrectionLevel, _ ByVal Version As Integer, _ ByVal ModuleSize As Integer, _ ByVal DstX As Single, _ ByVal DstY As Single, _ ByVal FillColor As Color _ ) As GdPictureStatus
public GdPictureStatus DrawBarcodeQrCode( string Data, BarcodeQREncodingMode EncodingMode, BarcodeQRErrorCorrectionLevel ErrorCorrectionLevel, int Version, int ModuleSize, float DstX, float DstY, Color FillColor )
public function DrawBarcodeQrCode( Data: String; EncodingMode: BarcodeQREncodingMode; ErrorCorrectionLevel: BarcodeQRErrorCorrectionLevel; Version: Integer; ModuleSize: Integer; DstX: Single; DstY: Single; FillColor: Color ): GdPictureStatus;
public function DrawBarcodeQrCode( Data : String, EncodingMode : BarcodeQREncodingMode, ErrorCorrectionLevel : BarcodeQRErrorCorrectionLevel, Version : int, ModuleSize : int, DstX : float, DstY : float, FillColor : Color ) : GdPictureStatus;
public: GdPictureStatus DrawBarcodeQrCode( string* Data, BarcodeQREncodingMode EncodingMode, BarcodeQRErrorCorrectionLevel ErrorCorrectionLevel, int Version, int ModuleSize, float DstX, float DstY, Color FillColor )
public: GdPictureStatus DrawBarcodeQrCode( String^ Data, BarcodeQREncodingMode EncodingMode, BarcodeQRErrorCorrectionLevel ErrorCorrectionLevel, int Version, int ModuleSize, float DstX, float DstY, Color FillColor )
Parameters
- Data
- The data to encode using the required QR Code symbol.
- EncodingMode
- A member of the BarcodeQREncodingMode enumeration. The QR Code encoding mode.
- ErrorCorrectionLevel
- A member of the BarcodeQRErrorCorrectionLevel enumeration. The error correction level.
These levels are defined in terms of percentage of codewords in the barcode that can be corrected if damaged. The higher the level, the greater the error correction, but also the larger the QR Code version.
- Version
- The version of the QR Code, it specifies the overall dimensions of the symbol.
QR Codes can be generated in 40 different symbol versions, from 21 x 21 modules (version 1) to 177 x 177 modules (version 40), therefore the range for this parameter is 0 - 40. You can use 0 to let the engine decide the minimum version required to encode all specified data.
- ModuleSize
- The size of each module within the drawn symbol, in points.
The module is the smallest cell in the symbol. The module size has to be made out of at least 2×2 printed dots for bigger reliability, therefore the recommended value for this parameter is 4 and greater.
Specifically for QR Codes, the larger the module is, the more stable and easier to read with a QR Code scanner it becomes. On the other hand, as the QR Code symbol size gets larger, a larger printing area is required.
- DstX
- The horizontal (X) coordinate of the destination point, expressed in the current units specified by the SetMeasurementUnit method with respect to the defined origin, related to the currently selected page.
- DstY
- The vertical (Y) coordinate of the destination point, expressed in the current units specified by the SetMeasurementUnit method with respect to the defined origin, related to the currently selected page.
- FillColor
- A color object that defines the color to be used for drawing the required symbol.
Return Value
We strongly recommend always checking this status first.