public void ChangeDPI() { var elements = new List <ZPLElementBase>(); elements.Add(new ZPLGraphicBox(400, 700, 100, 100, 5)); var options = new ZPLRenderOptions() { SourcePrintDPI = 203, TargetPrintDPI = 300 }; var output = new ZPLEngine(elements).ToZPLString(options); Console.WriteLine(output); }
public void LayoutWithOriginOffset() { var elements = new List <ZPLElementBase>(); var o = new ZPLOrigin(100, 100); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { elements.Add(new ZPLGraphicBox(o.PositionX, o.PositionY, 50, 50)); o = o.Offset(0, 100); } o = o.Offset(100, -300); } var options = new ZPLRenderOptions(); var output = new ZPLEngine(elements).ToZPLString(options); Console.WriteLine(output); }