public static int imprimeQR_CODE(Dictionary <string, string> dictionary) { int size = (int)Int32.Parse(dictionary["qrSize"]); String text = (String)dictionary["text"]; String align = (String)dictionary["align"]; int nivelCorrecao = 2; int result; int alignValue; if (align.Equals("Esquerda")) { alignValue = 0; } else if (align.Equals("Centralizado")) { alignValue = 1; } else { alignValue = 2; } Termica.DefinePosicao(alignValue); result = Termica.ImpressaoQRCode(text, size, nivelCorrecao); return(result); }
public static int imprimeBarCode(Dictionary <string, string> dictionary) { int barCodeType = codeOfBarCode((String)dictionary["barCodeType"]); String text = (String)dictionary["text"]; int height = (int)Int32.Parse(dictionary["height"]); int width = (int)Int32.Parse(dictionary["width"]); String align = (String)dictionary["align"]; int hri = 4; // NO PRINT int result; int alignValue; if (align.Equals("Esquerda")) { alignValue = 0; } else if (align.Equals("Centralizado")) { alignValue = 1; } else { alignValue = 2; } Termica.DefinePosicao(alignValue); result = Termica.ImpressaoCodigoBarras(barCodeType, text, height, width, hri); return(result); }