Пример #1
0
 public ImageBuilder(double width, double height)
 {
     backend = new VectorContextBackend ();
     ctx = new Context (backend, ToolkitEngine, vectorImageRecorderContextHandler);
     ctx.Reset (null);
     this.width = width;
     this.height = height;
 }
Пример #2
0
 public VectorContextBackend Clone()
 {
     var c = new VectorContextBackend ();
     c.Commands.AddRange (Commands);
     c.Doubles.AddRange (Doubles);
     c.Colors.AddRange (Colors);
     c.Images.AddRange (Images);
     c.Ints.AddRange (Ints);
     c.Rectangles.AddRange (Rectangles);
     c.Objects.AddRange (Objects);
     c.TextLayouts.AddRange (TextLayouts);
     return c;
 }