public int GetTop(int drawnTop)
        {
            float sizeByRatio = (float)drawnTop * (border.Top / GetVertSize(drawnTop));

            return(EzMath.Clamp((int)(Math.Ceiling(sizeByRatio)), 0, border.Top));
        }
        public int GetRight(int drawnWidth)
        {
            float sizeByRatio = (float)drawnWidth * ((size.Width - border.Right) / GetHoriSize(drawnWidth));

            return(EzMath.Clamp((int)(Math.Ceiling(sizeByRatio)), 0, size.Width - border.Right));
        }
        public int GetLeft(int drawnWidth)
        {
            float sizeByRatio = (float)drawnWidth * (border.Left / GetHoriSize(drawnWidth));

            return(EzMath.Clamp((int)(Math.Ceiling(sizeByRatio)), 0, border.Left));
        }
 public bool IsVertStreched()
 {
     return(!EzMath.IsZero(vTop) && !EzMath.IsZero(vBottom));
 }
 public bool IsHoriStreched()
 {
     return(!EzMath.IsZero(uLeft) && !EzMath.IsZero(uRight));
 }
        public int GetBottom(int drawnBottom)
        {
            float sizeByRatio = (float)drawnBottom * ((size.Height - border.Bottom) / GetVertSize(drawnBottom));

            return(EzMath.Clamp((int)(Math.Ceiling(sizeByRatio)), 0, size.Height - border.Bottom));
        }