예제 #1
0
        internal static Point Parse(string str)
        {
            float[] numArray = VectorSpec.Parse(str, "point", 2);
            int     x        = (int)numArray[0];

            return(new Point(x, (int)numArray[1]));
        }
예제 #2
0
        public static SizeF Parse(string str)
        {
            float[] numArray = VectorSpec.Parse(str, "size", 2);
            float   width    = numArray[0];

            return(new SizeF(width, numArray[1]));
        }
예제 #3
0
        public static PointF Parse(string str)
        {
            float[] numArray = VectorSpec.Parse(str, "point", 2);
            float   x        = numArray[0];

            return(new PointF(x, numArray[1]));
        }
예제 #4
0
        internal static Size Parse(string str)
        {
            float[] numArray = VectorSpec.Parse(str, "size", 2);
            int     width    = (int)numArray[0];

            return(new Size(width, (int)numArray[1]));
        }