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); }
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); } }