コード例 #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="Eto.Drawing.LinearGradientBrush"/> class with a given <paramref name="rectangle"/> and <paramref name="angle"/>
		/// </summary>
		/// <param name="rectangle">Rectangle to define the area of the gradient</param>
		/// <param name="startColor">Start color for the gradient</param>
		/// <param name="endColor">End color for the gradient</param>
		/// <param name="angle">Angle of the gradient</param>
		/// <param name="generator">Generator to create the brush, or null to use the current generator</param>
		public LinearGradientBrush (RectangleF rectangle, Color startColor, Color endColor, float angle, Generator generator = null)
		{
			handler = generator.CreateShared<ILinearGradientBrush> ();
			ControlObject = handler.Create (rectangle, startColor, endColor, angle);
		}
コード例 #2
0
ファイル: LinearGradientBrush.cs プロジェクト: sami1971/Eto
 /// <summary>
 /// Initializes a new instance of the <see cref="Eto.Drawing.LinearGradientBrush"/> class with a given <paramref name="rectangle"/> and <paramref name="angle"/>
 /// </summary>
 /// <param name="rectangle">Rectangle to define the area of the gradient</param>
 /// <param name="startColor">Start color for the gradient</param>
 /// <param name="endColor">End color for the gradient</param>
 /// <param name="angle">Angle of the gradient</param>
 /// <param name="generator">Generator to create the brush, or null to use the current generator</param>
 public LinearGradientBrush(RectangleF rectangle, Color startColor, Color endColor, float angle, Generator generator = null)
 {
     handler       = generator.CreateShared <ILinearGradientBrush> ();
     ControlObject = handler.Create(rectangle, startColor, endColor, angle);
 }
コード例 #3
0
		/// <summary>
		/// Initializes a new instance of the <see cref="Eto.Drawing.LinearGradientBrush"/> class between two points
		/// </summary>
		/// <param name="startColor">Start color for the gradient</param>
		/// <param name="endColor">End color for the gradient</param>
		/// <param name="startPoint">Start point for the gradient</param>
		/// <param name="endPoint">End point for the gradient</param>
		/// <param name="generator">Generator to create the brush, or null to use the current generator</param>
		public LinearGradientBrush (Color startColor, Color endColor, PointF startPoint, PointF endPoint, Generator generator = null)
		{
			handler = generator.CreateShared<ILinearGradientBrush> ();
			ControlObject = handler.Create (startColor, endColor, startPoint, endPoint);
		}
コード例 #4
0
ファイル: LinearGradientBrush.cs プロジェクト: sami1971/Eto
 /// <summary>
 /// Initializes a new instance of the <see cref="Eto.Drawing.LinearGradientBrush"/> class between two points
 /// </summary>
 /// <param name="startColor">Start color for the gradient</param>
 /// <param name="endColor">End color for the gradient</param>
 /// <param name="startPoint">Start point for the gradient</param>
 /// <param name="endPoint">End point for the gradient</param>
 /// <param name="generator">Generator to create the brush, or null to use the current generator</param>
 public LinearGradientBrush(Color startColor, Color endColor, PointF startPoint, PointF endPoint, Generator generator = null)
 {
     handler       = generator.CreateShared <ILinearGradientBrush> ();
     ControlObject = handler.Create(startColor, endColor, startPoint, endPoint);
 }