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); }
public override void Dispose() { if (_gdigsx != null) { _gdigsx.CloseCanvas(); _gdigsx = null; } }
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 GdiPlusDrawBoard(GdiPlusRenderSurface renderSurface) { _left = 0; _top = 0; _right = renderSurface.Width; _bottom = renderSurface.Height; _gdigsx = renderSurface; _painter = _gdigsx.GetAggPainter(); _memBmpBinder = new MemBitmapBinder(renderSurface.GetMemBitmap(), false); _memBmpBinder.BitmapFormat = BitmapBufferFormat.BGR; }
public override void Dispose() { if (_gdigsx != null) { _gdigsx.CloseCanvas(); _gdigsx = null; } //if (_painter != null) //{ // _painter = null; //} }
internal GdiPlusDrawBoard( int horizontalPageNum, int verticalPageNum, int left, int top, int width, int height) { this.left = left; this.top = top; this.right = left + width; this.bottom = top + height; _gdigsx = new GdiPlusRenderSurface(left, top, width, height); }