Beispiel #1
0
 public SolidPattern(Color color, bool solid)
 {
     if (solid)
     {
         pattern = CairoAPI.cairo_pattern_create_rgb(color.R, color.G, color.B);
     }
     else
     {
         pattern = CairoAPI.cairo_pattern_create_rgba(color.R, color.G, color.B, color.A);
     }
 }
Beispiel #2
0
 public SolidPattern(double r, double g, double b)
 {
     pattern = CairoAPI.cairo_pattern_create_rgb(r, g, b);
 }