示例#1
0
		public void DrawSubImage(ImageProviderBase image, int x, int y, int width, int height)
		{
			Rect itemRect = new Rect(x, y, width, height);
			IDisposable disposeAfterRender = image.Draw(_context, itemRect, _level);
			if (disposeAfterRender != null) //add the disposable to our list.
				_disposables.Add(disposeAfterRender);
		}
示例#2
0
 // Constructors, Finalizer and Dispose
 //======================================================================
 public DeepZoomImageTile(ImageProviderBase image, DeepZoomImageRequest imageRequest,
     int tilePixelDimension, int overlap, string format)
 {
     m_image = image;
     m_imageRequest = imageRequest;
     m_level = imageRequest.Level;
     m_tilePixelDimension = tilePixelDimension;
 }
示例#3
0
		public DziImageTile(ImageProviderBase image, DziImageRequest imageRequest,
			int tilePixelDimension, int overlap, string format)
		{
			_image = image;
			_imageRequest = imageRequest;
			_level = imageRequest.Level;
			_tilePixelDimension = tilePixelDimension;
		}
 public override void DrawSubImage(ImageProviderBase image, int x, int y, int width, int height)
 {
     Rect itemRect = new Rect(x, y, width, height);
     IDisposable disposeAfterRender = image.Draw(m_context, itemRect, m_level);
     if (null != disposeAfterRender)
     {
         //add the disposable to our list.
         m_disposables.Add(disposeAfterRender);
     }
 }
示例#5
0
 public abstract void DrawSubImage(ImageProviderBase image, int x, int y, int width, int height);