C# 调用 zxing.dll 生成条码二维码,自定义条码大小颜色透明度,旋转角度
输出效果
string txt = tNode.InnerText;
if (txt.Equals("")) return;
float x = 0, y = 0, x1 = 0, y1 = 0;
if (tNode.Attributes["x"] != null)
float.TryParse(tNode.Attributes["x"].Value, out x);
if (tNode.Attributes["y"] != null)
float.TryParse(tNode.Attributes["y"].Value, out y);
if (tNode.Attributes["x1"] != null)
float.TryParse(tNode.Attributes["x1"].Value, out x1);
if (tNode.Attributes["y1"] != null)
float.TryParse(tNode.Attributes["y1"].Value, out y1);
float width = MmToPixel(x1 - x), height = MmToPixel(y1 - y);
float angle = 0, alpha = 1;
if (tNode.Attributes["Rotate"] != null)
float.TryParse(tNode.Attributes["Rotate"].Value, out angle);
if (tNode.Attributes["Alpha"] != null)
float.TryParse(tNo