Ejemplo n.º 1
0
 public GraphicsCache(Graphics graphics, Rectangle clipRectangle)
 {
     mGraphics = graphics;
     mClipRectangle = clipRectangle;
     mPensCache = new PensCache(20);
     mBrushsCache = new BrushsCache(20);
 }
Ejemplo n.º 2
0
 public GraphicsCache(Graphics graphics, Rectangle clipRectangle, int pensCapacity, int brushsCapacity)
 {
     mGraphics = graphics;
     mClipRectangle = clipRectangle;
     mPensCache = new PensCache(pensCapacity);
     mBrushsCache = new BrushsCache(brushsCapacity);
 }
Ejemplo n.º 3
0
 public GraphicsCache(Graphics graphics)
 {
     mGraphics = graphics;
     mClipRectangle = Rectangle.Empty;
     mPensCache = new PensCache(20);
     mBrushsCache = new BrushsCache(20);
 }
Ejemplo n.º 4
0
        public void Dispose()
        {
            mPensCache.Dispose();
            mPensCache = null;
            mBrushsCache.Dispose();
            mBrushsCache = null;

            mGraphics = null;
        }