예제 #1
0
 /// <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();
 }
예제 #2
0
 /// <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();
 }