示例#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);
        }
 public override void Dispose()
 {
     if (_gdigsx != null)
     {
         _gdigsx.CloseCanvas();
         _gdigsx = null;
     }
 }
示例#3
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();
        }
        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;
        }
示例#5
0
        public override void Dispose()
        {
            if (_gdigsx != null)
            {
                _gdigsx.CloseCanvas();
                _gdigsx = null;
            }

            //if (_painter != null)
            //{
            //    _painter = null;
            //}
        }
示例#6
0
        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);
        }