Search Results
Parameters ¶ image A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor (). x1 Upper left x coordinate. y1 Upper left y coordinate 0, 0 is the top left corner of the image. x2 Bottom right x coordinate. y2 Bottom right y coordinate. color A color identifier created with imagecolorallocate ().
- Imagepng
Imagepng - PHP: imagerectangle - Manual
- Imagecreatefrompng
imagecreatefrompng () returns an image identifier...
- Imagecreatefromstring
imagecreatefromstring () returns an image identifier...
- Imagecopy
Copy a part of src_image onto dst_image starting at the x,y...
- Imagewebp
Imagewebp - PHP: imagerectangle - Manual
- Imagecreate
imagecreate () returns an image identifier representing a...
- Getimagesizefromstring
Identical to getimagesize () except that...
- Imagegrabscreen
This example demonstrates how to take a screenshot of the...
- Imagepng
Jul 11, 2025 · Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more.
Examples of imagerectangle. Info and examples on imagerectangle PHP Function
Parameters image A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor (). x1 Upper left x coordinate. y1 Upper left y coordinate 0, 0 is the top left corner of the image. x2 Bottom right x coordinate. y2 Bottom right y coordinate. color A color identifier created with imagecolorallocate ().
Home PHP Tutorial Image Functions Using the GD Library How to Draw Shapes On An Image Drawing squares, rectangles, circles, ellipses and polygons are all fairly simple using PHP's GD Library functions. First, let's create a 300px by 300px image, allocate two different colors (grey and green), fill up the image with the grey color, send it to the browser, and clear the memory: <?php header ...
Drawing rectangles & patterns using different thickness and colours using imagerectangle () in PHP GD
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor ().
