The data of the barcode to encode.
A member of the BarcodeQREncodingMode enumeration. The encoding mode.
A member of the BarcodeQRErrorCorrectionLevel enumeration. The error correction level.
Ref. parameter. The version of the QrCode. In the range 0 - 4. Specifies the overall dimensions of the symbol.Use 0 to let the engine decide and return the minimum version required to encode all data.
The number of modules composing the quiet zone. The quiet zone defines the margin around the barcode. QR Code requires a four-module wide margin at all sides of a symbol. Consequently a value superior or equal to 4 is highly suggested.
The size of each module, in pixels. A value superior or equal to 4 is recommended.





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / BarcodeMicroQRGetSize Method

BarcodeMicroQRGetSize Method (GdPictureImaging)

In This Topic
Returns the size, in pixels, required to render a Micro QrCode on a Bitmap.
Syntax
'Declaration
 
Public Function BarcodeMicroQRGetSize( _
   ByVal Data As String, _
   ByVal EncodingMode As BarcodeQREncodingMode, _
   ByVal ErrorCorrectionLevel As BarcodeMicroQRErrorCorrectionLevel, _
   ByRef Version As Integer, _
   ByVal QuietZone As Integer, _
   ByVal ModuleSize As Integer _
) As Integer
public function BarcodeMicroQRGetSize( 
    Data: String;
    EncodingMode: BarcodeQREncodingMode;
    ErrorCorrectionLevel: BarcodeMicroQRErrorCorrectionLevel;
   Out  Version: Integer;
    QuietZone: Integer;
    ModuleSize: Integer
): Integer; 
public function BarcodeMicroQRGetSize( 
   Data : String,
   EncodingMode : BarcodeQREncodingMode,
   ErrorCorrectionLevel : BarcodeMicroQRErrorCorrectionLevel,
   Version : int,
   QuietZone : int,
   ModuleSize : int
) : int;
public: int BarcodeMicroQRGetSize( 
   string* Data,
   BarcodeQREncodingMode EncodingMode,
   BarcodeMicroQRErrorCorrectionLevel ErrorCorrectionLevel,
   [PARAMFLAG::Out] int Version,
   int QuietZone,
   int ModuleSize
) 

Parameters

Data
The data of the barcode to encode.
EncodingMode
A member of the BarcodeQREncodingMode enumeration. The encoding mode.
ErrorCorrectionLevel
A member of the BarcodeQRErrorCorrectionLevel enumeration. The error correction level.
Version
Ref. parameter. The version of the QrCode. In the range 0 - 4. Specifies the overall dimensions of the symbol.Use 0 to let the engine decide and return the minimum version required to encode all data.
QuietZone
The number of modules composing the quiet zone. The quiet zone defines the margin around the barcode. QR Code requires a four-module wide margin at all sides of a symbol. Consequently a value superior or equal to 4 is highly suggested.
ModuleSize
The size of each module, in pixels. A value superior or equal to 4 is recommended.

Return Value

The size, in pixels, required to render a Micro QrCode.
Remarks
You can use the GetStat method to determine if the method succeeded.
See Also