mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 13:14:59 +00:00
feature: now image file previewer shows the image size and file size
This commit is contained in:
parent
7f87ce3431
commit
d6b21bad17
7 changed files with 388 additions and 331 deletions
|
@ -10,6 +10,9 @@ namespace SourceGit.Models
|
|||
public class RevisionImageFile
|
||||
{
|
||||
public Bitmap Image { get; set; } = null;
|
||||
public long FileSize { get; set; } = 0;
|
||||
public string ImageType { get; set; } = string.Empty;
|
||||
public string ImageSize => Image != null ? $"{Image.PixelSize.Width} x {Image.PixelSize.Height}" : "0 x 0";
|
||||
}
|
||||
|
||||
public class RevisionTextFile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue