public CacheBitmapManager(Color rasterFillColor, Color vectorFillColor, Color flyFillColor, IDrawArgs rasterDrawArgs, IDrawArgs vectorDrawArgs, IDrawArgs flyDrawArgs, InterpolationMode interpolationMode) { _rasterCacheBitmap = new CacheBitmap(PixelFormat.Format24bppRgb, rasterFillColor, rasterDrawArgs, interpolationMode); _vectorCacheBitmap = new CacheBitmap(PixelFormat.Format32bppArgb, vectorFillColor, vectorDrawArgs, interpolationMode); _flyCacheBitmap = new CacheBitmap(PixelFormat.Format32bppArgb, flyFillColor, flyDrawArgs, interpolationMode); }
public void Dispose() { _rasterCacheBitmap.Dispose(); _vectorCacheBitmap.Dispose(); _flyCacheBitmap.Dispose(); _rasterCacheBitmap = null; _vectorCacheBitmap = null; _flyCacheBitmap = null; }