contents   index   previous   next



GD filledRectangle()

syntax:

gd.filledRectangle(x1, y1, x2, y2, color)

gd.filledRectangle(point1, point2, color)

where:

x1 - horizontal pixel location of first corner

 

y1 - vertical pixel location of first corner

 

x2 - horizontal pixel location of second corner

 

y2 - horizontal pixel location of second corner

 

point1 - First point specification.

 

point2 - Second point specification.

 

color - color index or style to use for fill

 

return:

void.

 

description:

This method is exactly the same as GD rectangle(), except that it fills the rectangle, instead of drawing an outline. As with GD rectangle(), if either point is out of bounds, then no drawing is done.

 

see:

#link <gd>, GD rectangle(), GD filledPolygon()

 

 


GD fillToBorder()