示例#1
0
 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);
 }
示例#2
0
 public void Dispose()
 {
     _rasterCacheBitmap.Dispose();
     _vectorCacheBitmap.Dispose();
     _flyCacheBitmap.Dispose();
     _rasterCacheBitmap = null;
     _vectorCacheBitmap = null;
     _flyCacheBitmap    = null;
 }