예제 #1
0
        public GdiPlusPainter(GdiPlusRenderSurface renderSurface)
        {
            this._renderSurface = renderSurface;

            _currentPen       = new System.Drawing.Pen(System.Drawing.Color.Black);
            _currentFillBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Black);
            _vectorTool       = new PixelFarm.Agg.VectorTool();
        }
예제 #2
0
        public SkiaPainter(int w, int h)
        {
            _fill            = new SKPaint();
            _stroke          = new SKPaint();
            _stroke.IsStroke = true;
            _width           = w;
            _height          = h;

            _vectorTool = new PixelFarm.Agg.VectorTool();
        }
예제 #3
0
        public GLPainter(GLRenderSurface glsx)
        {
            _glsx          = glsx;
            _width         = glsx.CanvasWidth;
            _height        = glsx.CanvasHeight;
            _fontFillColor = Color.Black;
            _clipBox       = new RectInt(0, 0, _width, _height);
            _arcTool       = new Arc();
            CurrentFont    = new RequestFont("tahoma", 14);
            UseVertexBufferObjectForRenderVx = true;
            //tools
            _igfxPathBuilder = InternalGraphicsPathBuilder.CreateNew();

            _vectorTool = new Agg.VectorTool();
        }
예제 #4
0
        public AggPainter(AggRenderSurface aggsx)
        {
            //painter paint to target surface
            this._aggsx         = aggsx;
            this.sclineRas      = _aggsx.ScanlineRasterizer;
            this.stroke         = new Stroke(1);//default
            this.scline         = aggsx.ScanlinePacked8;
            this.sclineRasToBmp = aggsx.ScanlineRasToDestBitmap;
            _orientation        = DrawBoardOrientation.LeftBottom;
            //from membuffer
            _bxt = new BitmapBuffer(aggsx.Width,
                                    aggsx.Height,
                                    PixelFarm.Agg.ActualImage.GetBuffer(aggsx.DestActualImage));


            _vectorTool = new VectorTool();
        }
예제 #5
0
 public PdfPainter()
 {
     _vectorTool = new PixelFarm.Agg.VectorTool();
 }