|
void drawInvertEllipse(const int left, const int top, const int right, const int bottom)
|
| Return Type |
The function returns no value. |
void |
| left |
The far left (x) coordinate of the ellipse that will be drawn. |
int |
| top |
The top (y) coordinate of the ellipse that will be drawn. |
int |
| right |
The far right (x) coordinate of the ellipse that will be drawn. |
int |
| bottom |
The bottom (y) coordinate of the ellipse that will be drawn. |
int |
- Inverts (fills with opposite of what existed previously) the ellipse specified by left, top, right, and bottom coordinates.
- The left and right coordinates range from 0 to 127
- The top and bottom coordinates range from 0 to 47
-
Inverting a shape will check each pixel within that shape's area and 'invert' each one
- If the pixel is cleared, it will become filled
- If the pixel is filled, it will become cleared
|
|
|
Code Sample |
|
//Inverts (fills with blanks) an ellipse
//with a left coordinate of 5, top coordinate of 10,
//right coordinate of 15, and bottom coordinate of 20.
drawInvertEllipse(5, 10, 15, 20);
|
|
|
|