public void Line(Point startPoint, Point endPoint, IDrawingProperties properties) { if (properties != null) { this.pen.Color = Color.FromArgb(properties.Colour.Red, properties.Colour.Green, properties.Colour.Blue); this.pen.Width = properties.Width; } graphics.DrawLine(pen, startPoint.X, startPoint.Y, endPoint.X, endPoint.Y); }
public static void DrawInMenuCorrected( this Item item, SpriteBatch spriteBatch, Vector2 location, float scaleSize, float transparency, float layerDepth, StackDrawType drawStackNumber, Color color, bool drawShadow, IDrawOrigin origin ) { IDrawingProperties drawingProperties = item switch { // BigCraftable SObject { bigCraftable : { Value : true } } => new BigCraftableDrawingProperties(),
public void Arc(Point point, int height, int width, int startAngle, int sweepAngle, IDrawingProperties properties) { if (properties != null) { this.pen.Color = Color.FromArgb(properties.Colour.Red, properties.Colour.Green, properties.Colour.Blue); this.pen.Width = properties.Width; } graphics.DrawArc(pen, point.X, point.Y, width, height, startAngle, sweepAngle); }