Пример #1
0
 public HatchBrush(HatchStyle hatchStyle, Color foreColor, Color backColor)
 {
     this.hatchStyle = hatchStyle;
     this.foreCol    = foreColor;
     this.backCol    = backColor;
     base.native     = LibIGraph.CreateBrush_Hatch(hatchStyle, foreCol.ToArgb(), backCol.ToArgb());
 }
Пример #2
0
 public LinearGradientBrush(PointF point1, PointF point2, Color col1, Color col2)
 {
     base.native = LibIGraph.CreateBrush_LinearGradient
                       ((int)point1.X, (int)point1.Y, (int)point2.X, (int)point2.Y, col1.ToArgb(), col2.ToArgb());
 }