Exemple #1
0
        //Update eCoin GFX on window
        public void updateGraphics()
        {
            SolidBrush brush;
            Graphics   graphics = Graphics.FromImage(eCoinGFXI);

            for (int y = 0; y < 24; y++)
            {
                for (int x = 0; x < 24; x++)
                {
                    brush = new SolidBrush(eCoinPAL[eCoinGFX[x, y]]);
                    graphics.FillRectangle(brush, x * 8, y * 8, 8, 8);
                }
            }

            GFX.Image = eCoinGFXI;
            GFX.Update();
        }