本文整理汇总了C#中System.Drawing.Color.ToSFMLColor方法的典型用法代码示例。如果您正苦于以下问题:C# System.Drawing.Color.ToSFMLColor方法的具体用法?C# System.Drawing.Color.ToSFMLColor怎么用?C# System.Drawing.Color.ToSFMLColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Drawing.Color
的用法示例。
在下文中一共展示了System.Drawing.Color.ToSFMLColor方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Blit
/// <summary>
/// Draws the entire Renderimage to the named position.
/// </summary>
public void Blit(Vector2 Position, Color color)
{
Display();
CluwneSprite _blit = new CluwneSprite("_blit" + _key, base.Texture);
_blit.Position=Position;
_blit.Color = color.ToSFMLColor();
_blit.Draw();
}
示例2: Clear
/// <summary>
/// Clears the RenderImage with the specified color
/// </summary>
/// <param name="Color"> Color used to cover everything </param>
public void Clear(Color Color)
{
this.Clear(Color.ToSFMLColor());
}
示例3: Clear
/// <summary>
/// Clears the RenderImage with the specified System Color
/// </summary>
/// <param name="Color"> Color used to clear the texture </param>
public void Clear(SystemColor Color)
{
base.Clear(Color.ToSFMLColor());
}
示例4: Blit
/// <summary>
/// Draws the entire Renderimage to the named position.
/// </summary>
public void Blit(Vector2 Position, SystemColor color)
{
blitsprite = new CluwneSprite("_blit " + _key, Texture);
blitsprite.Position = Position;
blitsprite.Color = color.ToSFMLColor();
if (Mode == BlitterSizeMode.Scale)
{
Vector2 scale = new Vector2(Size.X / Texture.Size.X, Size.Y / Texture.Size.Y);
blitsprite.Scale = scale;
}
if (Mode == BlitterSizeMode.Crop)
{
blitsprite.Size = new Vector2(blitsprite.Texture.Size.X, blitsprite.Texture.Size.Y);
}
if (CluwneLib.CurrentRenderTarget == this)
return;
blitsprite.Draw();
}