Search Results
Parameters ¶ image A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor (). x1 x-coordinate for first point. y1 y-coordinate for first point. x2 x-coordinate for second point. y2 y-coordinate for second point. color The line color. A color identifier created with imagecolorallocate ().
- Getimagesize
Caution This function expects filename to be a valid image...
- Imagecreatefromjpeg
imagecreatefromjpeg () returns an image identifier...
- Imagecreate
imagecreate () returns an image identifier representing a...
- Imagecreatefromstring
imagecreatefromstring () returns an image identifier...
- Imagecreatetruecolor
imagecreatetruecolor () returns an image object representing...
- Imagettftext
Prior to PHP 8.0.0, imagefttext () was an extended variant...
- Imagecreatefromwebp
imagecreatefromwebp () returns an image identifier...
- Imagettfbbox
This function calculates and returns the bounding box in...
- Getimagesize
Jan 31, 2020 · 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.
imageline () is an inbuilt function in PHP that is used to draw a line between two given points.
Simple usage example of `imageline ()`. The imageline function in PHP is used to draw a line on an image. It takes the starting and ending coordinates of the line as parameters, along with the color of the line. This function is commonly used in image manipulation to add shapes or lines to images dynamically.
Description int imageline ( resource image, int x1, int y1, int x2, int y2, int color) imageline () draws a line from x1, y1 to x2, y2 (top left is 0, 0) in image image of color color.
Parameters image An image resource, returned by one of the image creation functions, such as imagecreatetruecolor (). x1 x-coordinate for first point. y1 y-coordinate for first point. x2 x-coordinate for second point. y2 y-coordinate for second point. color The line color. A color identifier created with imagecolorallocate ().
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor ().
