public GraphicsCache(Graphics graphics, Rectangle clipRectangle)
 {
     mGraphics      = graphics;
     mClipRectangle = clipRectangle;
     mPensCache     = new PensCache(20);
     mBrushsCache   = new BrushsCache(20);
 }
 public GraphicsCache(Graphics graphics, Rectangle clipRectangle, int pensCapacity, int brushsCapacity)
 {
     mGraphics      = graphics;
     mClipRectangle = clipRectangle;
     mPensCache     = new PensCache(pensCapacity);
     mBrushsCache   = new BrushsCache(brushsCapacity);
 }
 public GraphicsCache(Graphics graphics)
 {
     mGraphics      = graphics;
     mClipRectangle = Rectangle.Empty;
     mPensCache     = new PensCache(20);
     mBrushsCache   = new BrushsCache(20);
 }
Example #4
0
 public GraphicsCache(Graphics graphics, Rectangle clipRectangle, int pensCapacity, int brushsCapacity)
 {
     mGraphics = graphics;
     mClipRectangle = clipRectangle;
     mPensCache = new PensCache(pensCapacity);
     mBrushsCache = new BrushsCache(brushsCapacity);
 }
Example #5
0
 public GraphicsCache(Graphics graphics, Rectangle clipRectangle)
 {
     mGraphics = graphics;
     mClipRectangle = clipRectangle;
     mPensCache = new PensCache(20);
     mBrushsCache = new BrushsCache(20);
 }
Example #6
0
 public GraphicsCache(Graphics graphics)
 {
     mGraphics = graphics;
     mClipRectangle = Rectangle.Empty;
     mPensCache = new PensCache(20);
     mBrushsCache = new BrushsCache(20);
 }
        public void Dispose()
        {
            mPensCache.Dispose();
            mPensCache = null;
            mBrushsCache.Dispose();
            mBrushsCache = null;

            mGraphics = null;
        }
Example #8
0
        public void Dispose()
        {
            mPensCache.Dispose();
            mPensCache = null;
            mBrushsCache.Dispose();
            mBrushsCache = null;

            mGraphics = null;
        }