当前位置: 首页>>代码示例>>C#>>正文


C# IHandler.Create方法代码示例

本文整理汇总了C#中IHandler.Create方法的典型用法代码示例。如果您正苦于以下问题:C# IHandler.Create方法的具体用法?C# IHandler.Create怎么用?C# IHandler.Create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IHandler的用法示例。


在下文中一共展示了IHandler.Create方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TextureBrush

		TextureBrush (IHandler handler, Image image, float opacity)
		{
			this.handler = handler;
			this.ControlObject = handler.Create (image, opacity);
			this.Image = image;
			this.opacity = opacity;
		}
开发者ID:gene-l-thomas,项目名称:Eto,代码行数:7,代码来源:TextureBrush.cs

示例2: Pen

		/// <summary>
		/// Creates a new pen with the specified <paramref name="color"/> and <paramref name="thickness"/>
		/// </summary>
		/// <param name="color">Color for the new pen</param>
		/// <param name="thickness">Thickness of the new pen</param>
		public Pen(Color color, float thickness = 1f)
		{
			handler = Platform.Instance.CreateShared<IHandler>();
			ControlObject = handler.Create(color, thickness);
		}
开发者ID:mhusen,项目名称:Eto,代码行数:10,代码来源:Pen.cs

示例3: LinearGradientBrush

		#pragma warning disable 612,618

		/// <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)
		{
			handler = generator.CreateShared<IHandler>();
			ControlObject = handler.Create(startColor, endColor, startPoint, endPoint);
		}
开发者ID:gene-l-thomas,项目名称:Eto,代码行数:15,代码来源:LinearGradientBrush.cs

示例4: Pen

		public Pen(Color color, float thickness, Generator generator)
		{
			handler = generator.CreateShared<IHandler>();
			ControlObject = handler.Create(color, thickness);
		}
开发者ID:gene-l-thomas,项目名称:Eto,代码行数:5,代码来源:Pen.cs

示例5: SolidBrush

		/// <summary>
		/// Initializes a new instance of a SolidBrush with the specified <paramref name="color"/>
		/// </summary>
		/// <param name="color">Color for the brush</param>
		public SolidBrush(Color color)
		{
			handler = Platform.Instance.CreateShared <IHandler> ();
			ControlObject = handler.Create (color);
		}
开发者ID:mhusen,项目名称:Eto,代码行数:9,代码来源:SolidBrush.cs

示例6: SolidBrush

		public SolidBrush(Color color, Generator generator = null)
		{
			handler = generator.CreateShared <IHandler>();
			ControlObject = handler.Create(color);
		}
开发者ID:gene-l-thomas,项目名称:Eto,代码行数:5,代码来源:SolidBrush.cs

示例7: RadialGradientBrush

		/// <summary>
		/// Initializes a new instance of the <see cref="Eto.Drawing.RadialGradientBrush"/>.
		/// </summary>
		/// <param name="startColor">Start color from the <paramref name="gradientOrigin"/></param>
		/// <param name="endColor">End color at the outer edge of the ellipse</param>
		/// <param name="center">Center of the ellipse</param>
		/// <param name="gradientOrigin">Origin of the gradient.</param>
		/// <param name="radius">Radius of the ellipse.</param>
		public RadialGradientBrush(Color startColor, Color endColor, PointF center, PointF gradientOrigin, SizeF radius)
		{
			handler = Platform.Instance.CreateShared<IHandler>();
			ControlObject = handler.Create(startColor, endColor, center, gradientOrigin, radius);
		}
开发者ID:mhusen,项目名称:Eto,代码行数:13,代码来源:RadialGradientBrush.cs


注:本文中的IHandler.Create方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。