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