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