public void ClearThumbnail() { pbThumbnail.Image = null; if (ThumbnailImage != null) { ThumbnailImage.Dispose(); ThumbnailImage = null; } ThumbnailSourceFilePath = null; }
public void Dispose() { if (ThumbnailImage != null) { ThumbnailImage.Dispose(); ThumbnailImage = null; } if (Image != null) { Image.Dispose(); Image = null; } }
protected virtual void Dispose(bool disposing) { if (disposing) { if (OriginalImage != null) { OriginalImage.Dispose(); OriginalImage = null; } if (ThumbnailImage != null) { ThumbnailImage.Dispose(); ThumbnailImage = null; } if (FilteredImage != null) { FilteredImage.Dispose(); FilteredImage = null; } } }