From 87c5b40e053079ccebfc4e169124533c1e294f5f Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 19 Dec 2018 03:25:39 +0400 Subject: [PATCH] (ImageMetaData): added iWidth/iHeight shortcut properties. --- GameRes/Image.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/GameRes/Image.cs b/GameRes/Image.cs index 1d05401b..aab3b796 100644 --- a/GameRes/Image.cs +++ b/GameRes/Image.cs @@ -33,12 +33,26 @@ namespace GameRes { public class ImageMetaData { + /// Image width in pixels. public uint Width { get; set; } + + /// Image height in pixels. public uint Height { get; set; } + + /// Horizontal coordinate of the image top left corner. public int OffsetX { get; set; } + + /// Vertical coordinate of the image top left corner. public int OffsetY { get; set; } + + /// Image bitdepth. public int BPP { get; set; } + + /// Image source file name, if any. public string FileName { get; set; } + + public int iWidth { get { return (int)Width; } } + public int iHeight { get { return (int)Height; } } } public class ImageEntry : Entry