Esempio n. 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);
        }
Esempio n. 2
0
 /// <summary>
 /// Create a new uniform color fill with paint is a ColorPaint
 /// </summary>
 public Fill(Color color)
 {
     Paint = new ColorPaint(color);
 }
Esempio n. 3
0
 /// <summary>
 /// Create a new uniform color fill with paint is a ColorPaint
 /// </summary>
 public Fill(Color color)
 {
     Paint = new ColorPaint(color);
 }