Search Results

  1. 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 ().

  2. 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.

  3. imageline () is an inbuilt function in PHP that is used to draw a line between two given points.

  4. 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.

  5. 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.

  6. 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 ().

  7. An image resource, returned by one of the image creation functions, such as imagecreatetruecolor ().