예제 #1
0
            public Canvas(int width, int height)
            {
                var white = new Css.Color(255, 255, 255, 255);

                Pixels = Enumerable.Repeat(white, width * height).ToList();
                Width  = width;
                Height = height;
            }
예제 #2
0
 public SolidColor(Css.Color color, Layout.Rect rect)
 {
     Color = color;
     Rect  = rect;
 }