Example #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());
 }
		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());
		}
Example #3
0
		public HatchBrush(HatchStyle hatchStyle, Color foreColor, Color backColor)
		{
			Status status = GDIPlus.GdipCreateHatchBrush (hatchStyle, foreColor.ToArgb (), backColor.ToArgb (), out nativeObject);
			GDIPlus.CheckStatus (status);
		}