/// <summary> /// Sets the preview image. /// </summary> /// <param name="image">The image to set the preview to.</param> public void UpdatePreview(Image image) { if (SpriteView.Bitmap != null) { SpriteView.Bitmap.Dispose(); SpriteView.Bitmap = null; } image.Source = SpriteView.ConvertToSource(); }
/// <summary> /// <para>Updates the sprite viewer if one is loaded.</para> /// </summary> public void UpdateSpriteViewImage() { if (SpriteView.Bitmap != null) { SpriteView.Bitmap.Dispose(); SpriteView.Bitmap = null; } UI_SpriteView.Source = SpriteView.ConvertToSource(); }