private static Color ConvertColor(Skinning.Color c) { return(Color.FromArgb( (int)Clamp(255.0f * c.A, 0, 255), (int)Clamp(255.0f * c.R, 0, 255), (int)Clamp(255.0f * c.G, 0, 255), (int)Clamp(255.0f * c.B, 0, 255))); }
public void DrawString(IFont iFont, Skinning.Color color, UI.Rectangle target, string text) { var font = (VirtualFont)iFont; graphics.DrawString( text, font.Font, new SolidBrush(ConvertColor(color)), ConvertRectangle(target)); }
public void Clear(Skinning.Color color) { this.graphics.Clear(ConvertColor(color)); }