Example #1
0
 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)));
 }
Example #2
0
        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));
        }
Example #3
0
 public void Clear(Skinning.Color color)
 {
     this.graphics.Clear(ConvertColor(color));
 }