This function draws a rectangle on an image.
IT is assumed that the phColor will match that of the surface color type. Unexpected results may occur if they are not. It's left to the coder to ensure these things because this function can't have heavy error checking.
- Parameters:
-
[in,out] | s | The image information |
[in] | c | The color of the rectangle |
[in] | x1 | The top left x coordinate of the rectangle |
[in] | y1 | The top left y coordinate of the rectangle |
[in] | x2 | The bottom right x coordinate of the rectangle |
[in] | y2 | The bottom right y coordinate of the rectangle |
Definition at line 479 of file ImageGfx.c. |