本文整理汇总了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;
}
示例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);
}
示例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);
}
示例4: Pen
public Pen(Color color, float thickness, Generator generator)
{
handler = generator.CreateShared<IHandler>();
ControlObject = handler.Create(color, thickness);
}
示例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);
}
示例6: SolidBrush
public SolidBrush(Color color, Generator generator = null)
{
handler = generator.CreateShared <IHandler>();
ControlObject = handler.Create(color);
}
示例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);
}