feature: show image size change for Models.ImageDiff

This commit is contained in:
leo 2024-03-28 09:48:42 +08:00
parent 223467480f
commit 582a283ad5
2 changed files with 20 additions and 3 deletions

View file

@ -553,6 +553,9 @@ namespace SourceGit.Models
{
public Bitmap Old { get; set; } = null;
public Bitmap New { get; set; } = null;
public string OldSize => Old != null ? $"{Old.PixelSize.Width} x {Old.PixelSize.Height}" : "0 x 0";
public string NewSize => New != null ? $"{New.PixelSize.Width} x {New.PixelSize.Height}" : "0 x 0";
}
public class NoOrEOLChange