Click or drag to resize

QRcodeCreateImageInUtf8 Method

Create an image file of a QR code, using UTF-8 encoding.

Namespace: diQRcodeNet
Assembly: diQRcodeNet (in diQRcodeNet.dll) Version: 4.0.0.26352 (4.0.0.1)
Syntax
public static int CreateImageInUtf8(
	string outFile,
	string inputStr,
	ImageType imageType = ImageType.Gif,
	int nPixelsPerModule = 0,
	int margin = 0,
	Ecc level = Ecc.M,
	Options options = Options.Default
)

Parameters

outFile  String
Name of output image file to be created.
inputStr  String
Text input to be encoded.
imageType  ImageType  (Optional)
Image type (GIF/SVG) (default = GIF).
nPixelsPerModule  Int32  (Optional)
Number of pixels per module (default = 2 ppm)
margin  Int32  (Optional)
Size of margin in modules (default = 4 modules).
level  Ecc  (Optional)
Error correction code level (default = M)
options  Options  (Optional)
Option flags.

Return Value

Int32
Zero on success, or a nonzero error code.
Remarks
Any non-ASCII characters in inputStr will be encoded in UTF-8 before processing.
Example
C#
n = QRcode.CreateImageInUtf8("zz-utf8.svg", "中国", ImageType.Svg);
See Also