private void OnImageLoad()
 {
     ImageSize = new Size(image.ClientWidth, image.ClientHeight);
     Size      = !SourceRect.IsNullOrEmpty() ? SourceRect.Size : ImageSize;
     State     = RenderImageState.DownloadCompleted;
     container.Remove(image);
 }
Esempio n. 2
0
 void IHtmlImageLoadListener.OnImageLoad(int clientWidth, int clientHeight)
 {
     ImageSize = new Size(clientWidth, clientHeight);
     Size      = !SourceRect.IsNullOrEmpty() ? SourceRect.Size : ImageSize;
     State     = RenderImageState.DownloadCompleted;
     container.Remove(image);
 }