예제 #1
0
 public void DrowSquare(Display display, Point startPoint, int width, ColorDto color)
 {
     DrowRectangle(display, startPoint, width, width, color);
 }
예제 #2
0
        public void DrowRectangle(Display display, Point startPoint, int width, int height, ColorDto color)
        {
            var point = new Point();

            for (int i = 0; i < width; i++)
            {
                point.X = i + startPoint.X;
                for (int j = 0; j < height; j++)
                {
                    point.Y = j + startPoint.Y;
                    display.SetPixelColor(point, color);
                }
            }
        }
예제 #3
0
 public void SetPixelColor(Point point, ColorDto ColorDto)
 {
     pixels[point.X, point.Y] = colorFacrtory.GetColor(ColorDto);
 }