We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public void generateQcode(string Code,int Width, int Height, int type = 0) { try { string severPath = getfilepath(); EncodingOptions encodingOptions = null; BarcodeWriter barcodeWriter = null; encodingOptions = new EncodingOptions { Width = Width, Height = Height }; barcodeWriter = new BarcodeWriter(); if (type == 1) { barcodeWriter.Format = BarcodeFormat.QR_CODE; } else { barcodeWriter.Format = BarcodeFormat.CODE_128; }
barcodeWriter.Options = encodingOptions; string text = Code + ".jpg"; Bitmap bitmap = barcodeWriter.Write(Code); if (!DirFileHelper.IsExistDirectory(severPath)) { DirFileHelper.CreateDirectory(severPath); } string filename = severPath + text; bitmap.Save(filename); bitmap.Dispose(); } catch (Exception ex) { throw ex; } }
The text was updated successfully, but these errors were encountered:
有咩有大佬
Sorry, something went wrong.
No branches or pull requests
public void generateQcode(string Code,int Width, int Height, int type = 0)
{
try
{
string severPath = getfilepath();
EncodingOptions encodingOptions = null;
BarcodeWriter barcodeWriter = null;
encodingOptions = new EncodingOptions
{
Width = Width,
Height = Height
};
barcodeWriter = new BarcodeWriter();
if (type == 1)
{
barcodeWriter.Format = BarcodeFormat.QR_CODE;
}
else
{
barcodeWriter.Format = BarcodeFormat.CODE_128;
}
The text was updated successfully, but these errors were encountered: