Create a GIF file of a QR code [deprecated].
Namespace: diQRcodeNetAssembly: diQRcodeNet (in diQRcodeNet.dll) Version: 4.0.0.26352 (4.0.0.1)
Syntaxpublic static int CreateGif(
string outFile,
string inputStr,
int nPixelsPerModule = 0,
Ecc level = Ecc.M,
string paramStr = "",
Options options = Options.Default
)
Public Shared Function CreateGif (
outFile As String,
inputStr As String,
Optional nPixelsPerModule As Integer = 0,
Optional level As Ecc = Ecc.M,
Optional paramStr As String = "",
Optional options As Options = Options.Default
) As Integer
Parameters
- outFile String
- Name of output GIF file to be created.
- inputStr String
- Text input to be encoded (ANSI characters only).
- nPixelsPerModule Int32 (Optional)
- Number of pixels per module (default = 2 ppm)
- level Ecc (Optional)
- Error correction level (default = M)
- paramStr String (Optional)
- Optional parameter string. Set as "margin=N" to change the margin to N modules (default=4).
- options Options (Optional)
- Set as Escaped to indicate #-escaped sequences in the input string.
Return Value
Int32Zero on success, or a nonzero
error code.
Remarks
Exampleint n = QRcode.CreateGif("hello.gif", "hello world");
if (n != 0) Console.WriteLine("Error: {0}", QRcode.ErrorLookup(n));
See Also