Image manipulation

Hello,

I want to draw a line, rectangle, circle or a polygon to a surface. I could not find functions for this.
I suppose I need to use the PixelBuffer to draw a line by changing each pixel's color, I'm right?

Lines and rectangles can be

Lines and rectangles can be drawn with Display.DrawLine and Display.DrawRect (set Display.RenderTarget to the surface to draw onto it first). Filled rectangles can be drawn with Display.FillRect. Circles can be drawn with Display.DrawEllipse, but there is no FillEllipse function so filled circles can't be done. There are no functions specifically for drawing polygons, but one way to do polygons would be to call Display.DrawLineSegments. This is not an ideal solution though, because each pair of points in DrawLineSegments is drawn as a single line so if you want to draw the triangle A B C you need to pass in points like A B B C C A, this will draw the line segments A-B B-C C-A. There is no way to draw filled polygons aside from manually drawing it on a pixel buffer and making a surface out of it. I will look into adding methods which are a bit more flexible here.