using System.Drawing.Imaging;
using System;

namespace Sex
{
    public partial class Sex : System.Web.UI.Page
    {
        public class Img
        {
            System.Drawing.Image imgFile = null;
            string _Path;
            public string Path
            {
                get
                {
                    return _Path;
                }
            }
            float _x;
            public int x
            {
                get
                {
                    return (int)_x;
                }
            }
            float _y;
            public int y
            {
                get
                {
                    return (int)_y;
                }
            }
            float _dx;
            public int dx
            {
                get
                {
                    return (int)_dx;
                }
            }
            float _dy;
            public int dy
            {
                get
                {
                    return (int)_dy;
                }
            }
            PixelFormat _pf;
            public PixelFormat pf
            {
                get
                {
                    return _pf;
                }
            }
            int _Flags;
            public int Flags
            {
                get
                {
                    return _Flags;
                }
            }
            object _Tag;
            public object Tag
            {
                get
                {
                    return _Tag;
                }
            }
            ImageFormat _Format;
            public ImageFormat Format
            {
                get
                {
                    return _Format;
                }
            }
            Guid[] _FrameDimensionsList;
            public Guid[] FrameDimensionsList
            {
                get
                {
                    return _FrameDimensionsList;
                }
            }
            int[] _PropertyIdList;
            public int[] PropertyIdList
            {
                get
                {
                    return _PropertyIdList;
                }
            }
            public Img(string Path)
            {
                imgFile = System.Drawing.Image.FromFile(Path);
                _Path = Path;
                _x = imgFile.PhysicalDimension.Width;
                _y = imgFile.PhysicalDimension.Height;
                _dx = imgFile.HorizontalResolution;
                _dy = imgFile.VerticalResolution;
                _pf = imgFile.PixelFormat;
                _Flags = imgFile.Flags;
                _Tag = imgFile.Tag;
                _Format = imgFile.RawFormat;
                _FrameDimensionsList = imgFile.FrameDimensionsList;
                _PropertyIdList = imgFile.PropertyIdList;
                imgFile.Dispose();
            }
        }
    }
}