Exemple #1
0
 public void Ellipse(RGBA color, Utilities.Point center, float width, float height, bool fill, bool border, float thickness)
 {
     if (fill)
     {
         Graphics.FillEllipse(GetCachedSolidBrush(color), center.X - (width / 2f), center.Y - (height / 2f), width, height);
         if (border)
         {
             Graphics.DrawEllipse(GetCachedPen(RGBA.Black, thickness), center.X - (width / 2f), center.Y - (height / 2f), width, height);
         }
     }
     else
     {
         Graphics.DrawEllipse(GetCachedPen(color, thickness), center.X - (width / 2f), center.Y - (height / 2f), width, height);
     }
 }
Exemple #2
0
 public void Text(RGBA color, Utilities.Point topleft, string text, float fontsize = 16, string fontname = "Arial")
 {
     Graphics.DrawString(text, GetCachedFont(fontname, fontsize), GetCachedSolidBrush(color), topleft.X, topleft.Y);
 }