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); }
public void Dispose() { mPensCache.Dispose(); mPensCache = null; mBrushsCache.Dispose(); mBrushsCache = null; mGraphics = null; }