Exemplo n.º 1
0
        public void Draw(IPencil pencil)
        {
            int offset = 10;

            pencil.PixedRatio = 5;
            for (int arrY = 0; arrY < pixelArray.Length; arrY++)
            {
                for (int arrX = 0; arrX < pixelArray[arrY].Length; arrX++)
                {
                    if (pixelArray[arrY][arrX] == 1)
                    {
                        pencil.DrawPoint(DrawColour.Black, offset + arrX, offset + arrY);
                    }
                }
            }
            pencil.PixedRatio = 1;
        }