Example #1
0
        public static void PlaceImage(IRenderingApplication app, int x, int y, PInfo[,] info)
        {
            PInfo[,] flipped = new PInfo[info.GetLength(0), info.GetLength(1)];

            for (int ax = 0; ax < info.GetLength(0); ax++)
            {
                for (int ay = 0; ay < info.GetLength(1); ay++)
                {
                    flipped[ax, info.GetLength(1) - ay - 1] = info[ax, ay];
                }
            }

            app.App_DrawScreen(flipped, x + 2, (height - y - flipped.GetLength(1)) + 2, null);
        }