Example #1
0
        public static RectSize getConfSize(System.Drawing.Image file)
        {
            RectSize size = new RectSize();

            if (file.Width * 25 / 35 >= file.Height)
            {
                size.width  = 350;
                size.height = file.Height * 350 / file.Width;
            }
            else
            {
                size.height = 250;
                size.width  = file.Width * 250 / file.Height;
            }
            return(size);
        }
Example #2
0
        public static RectSize getCTSize(System.Drawing.Image file)
        {
            RectSize size = new RectSize();

            if (file.Width * 8 / 5 >= file.Height)
            {
                size.width  = 500;
                size.height = file.Height * 500 / file.Width;
            }
            else
            {
                size.height = 800;
                size.width  = file.Width * 800 / file.Height;
            }
            return(size);
        }
Example #3
0
 public RectSize(RectSize size)
 {
     this.width  = size.width;
     this.height = size.height;
 }