mirror of
https://github.com/crskycode/GARbro.git
synced 2024-10-23 07:38:16 +08:00
(ImageMetaData): added iWidth/iHeight shortcut properties.
This commit is contained in:
parent
590b52d812
commit
87c5b40e05
@ -33,12 +33,26 @@ namespace GameRes
|
||||
{
|
||||
public class ImageMetaData
|
||||
{
|
||||
/// <summary>Image width in pixels.</summary>
|
||||
public uint Width { get; set; }
|
||||
|
||||
/// <summary>Image height in pixels.</summary>
|
||||
public uint Height { get; set; }
|
||||
|
||||
/// <summary>Horizontal coordinate of the image top left corner.</summary>
|
||||
public int OffsetX { get; set; }
|
||||
|
||||
/// <summary>Vertical coordinate of the image top left corner.</summary>
|
||||
public int OffsetY { get; set; }
|
||||
|
||||
/// <summary>Image bitdepth.</summary>
|
||||
public int BPP { get; set; }
|
||||
|
||||
/// <summary>Image source file name, if any.</summary>
|
||||
public string FileName { get; set; }
|
||||
|
||||
public int iWidth { get { return (int)Width; } }
|
||||
public int iHeight { get { return (int)Height; } }
|
||||
}
|
||||
|
||||
public class ImageEntry : Entry
|
||||
|
Loading…
Reference in New Issue
Block a user