PHP:Drawing Rectangles

From Progzoo
Jump to: navigation, search

Draw Rectangle

The function ImageRectangle ($image, $x1, $y1, $x2, $y2, $color) can be used to draw a rectangle. Image resource is specified by $image, the top left corner is specified by ($x1, $y1) and the down right corner is ($x2, $y2), $color is color identifier.

A Drawn Rectangle


[Font] [Default] [Show] [Resize] [History] [Profile]

Fill Rectangle

The function ImageRectangle ($image, $x1, $y1, $x2, $y2, $color) can be used to draw and fill a rectangle. Image resource is specified by $image, the top left corner is specified by ($x1, $y1) and the down right corner is ($x2, $y2), $color is color identifier.

A Filled Rectangle


[Font] [Default] [Show] [Resize] [History] [Profile]