(Formerly known as RawDrawRectangle, which is now obsolete)
DrawingSurface.DrawRectangle(int x1, int y1, int x2, int y2)
Draws a filled rectangle in the current colour with its top-left corner
at (x1,y1) and its bottom right corner at (x2, y2)
NOTE: The X and Y co-ordinates given are ROOM co-ordinates, not SCREEN co-ordinates.
This means that in a scrolling room you can draw outside the current visible area.
Example:
DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
surface.DrawingColor = 14;
surface.DrawRectangle(0, 0, 160, 100);
surface.Release();
will draw a rectangle over the top left hand quarter of the screen.
See Also: DrawingSurface.DrawImage,
DrawingSurface.DrawLine
|