Example #1
0
        public ImageCache(Viewport viewport, ShapeDrawer shapeDrawer, Filler filler, Page page, int width, int height)
        {
            _viewport = viewport;
            _shapeDrawer = shapeDrawer;
            _filler = filler;
            _page = page;

            _page.ImageBuffer = new Bitmap(width, height);
            using (var graph = Graphics.FromImage(_page.ImageBuffer))
            {
                graph.Clear(Color.White);
            }

            _page.AddedShape += Page_AddedShape;
        }
Example #2
0
 public CreateTextAction(Page page, TextObject text)
     : this(text)
 {
     Page = page;
 }