Example #1
0
 public ImageTextObject(float x, float y, float scale, Image texture, string text, Color color, Font font)
 {
     containerObject = new ContainerObject(x, y);
     if (texture != null)
         containerObject.Add(scale, texture);
     if (text != null)
         containerObject.Add(new SolidBrush(color), font, text);
 }
Example #2
0
 public ImageTextObject(float x, float y, float scale, Image texture, string text, Color color, Font font)
 {
     containerObject = new ContainerObject(x, y);
     if (texture != null)
     {
         containerObject.Add(scale, texture);
     }
     if (text != null)
     {
         containerObject.Add(new SolidBrush(color), font, text);
     }
 }