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(); }
public SkiaPainter(int w, int h) { _fill = new SKPaint(); _stroke = new SKPaint(); _stroke.IsStroke = true; _width = w; _height = h; _vectorTool = new PixelFarm.Agg.VectorTool(); }
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(); }
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(); }
public PdfPainter() { _vectorTool = new PixelFarm.Agg.VectorTool(); }