예제 #1
0
        Fill GetUniformFill()
        {
            Fill result = null;

            //there are several ways to create a solid fills.
            //The following methods give the same result

            //method 1
            result = Fills.Red;

            //method 2
            result = new Fill(Colors.Red);

            //method 3
            ColorPaint paint = new ColorPaint(Colors.Red);

            result = new Fill(paint);

            return(result);
        }
예제 #2
0
 /// <summary>
 /// Create a new uniform color fill with paint is a ColorPaint
 /// </summary>
 public Fill(Color color)
 {
     Paint = new ColorPaint(color);
 }
예제 #3
0
 /// <summary>
 /// Create a new uniform color fill with paint is a ColorPaint
 /// </summary>
 public Fill(Color color)
 {
     Paint = new ColorPaint(color);
 }