Esempio n. 1
0
        internal static Point ReadPoint(byte[] parameters, int index, bool xy, EmfContext context)
        {
            int x = ReadInt16(parameters, index);
            int y = ReadInt16(parameters, index + 2);

            if (!xy)
            {
                int c = x;
                x = y;
                y = c;
            }

            if (context != null)
            {
                return(context.Translate(x, y));
            }

            return(new Point(x, y));
        }
        internal static Point ReadPoint(byte[] parameters, int index, bool xy, EmfContext context)
        {
            int x = ReadInt16(parameters, index);
            int y = ReadInt16(parameters, index + 2);

            if (!xy) {
                int c = x;
                x = y;
                y = c;
            }

            if (context != null) {
                return context.Translate(x, y);
            }

            return new Point(x, y);
        }