Example #1
0
        public Canvas(int width, int height, IPixel <TPixelData> defaultPixel)
        {
            Width  = width;
            Height = height;
            Area   = new IPixel <TPixelData> [width, height];

            for (var x = 0; x < width; x++)
            {
                for (var y = 0; y < height; y++)
                {
                    Area[x, y] = defaultPixel.Clone();
                }
            }
        }
Example #2
0
 public IPixel Clone()
 {
     return(sprite.Clone());
 }