Query: imageellipse
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IMAGEELLIPSE(3) 1 IMAGEELLIPSE(3) imageellipse - Draw an ellipseSYNOPSISbool imageellipse (resource $image, int $cx, int $cy, int $width, int $height, int $color)DESCRIPTIONDraws an ellipse centered at the specified coordinates.PARAMETERSo $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $cx - x-coordinate of the center. o $cy - y-coordinate of the center. o $width - The ellipse width. o $height - The ellipse height. o $color - The color of the ellipse. A color identifier created with imagecolorallocate(3).RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 imageellipse(3) example <?php // Create a blank image. $image = imagecreatetruecolor(400, 300); // Select the background color. $bg = imagecolorallocate($image, 0, 0, 0); // Fill the background with the color selected above. imagefill($image, 0, 0, $bg); // Choose a color for the ellipse. $col_ellipse = imagecolorallocate($image, 255, 255, 255); // Draw the ellipse. imageellipse($image, 200, 150, 300, 200, $col_ellipse); // Output the image. header("Content-type: image/png"); imagepng($image); ?> The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imageellipse()NOTESNote This function requires GD 2.0.2 or later.SEE ALSOimagefilledellipse(3), imagearc(3). PHP Documentation Group IMAGEELLIPSE(3)
Related Man Pages |
---|
imagepolygon(3) - php |
imagearc(3) - php |
imageellipse(3) - php |
imagefilledarc(3) - php |
imagefilledrectangle(3) - php |
Similar Topics in the Unix Linux Community |
---|
Corel Draw like software for Ubuntu |
Need help filling in ranges |
RHCSA RHCE 200 / 300 |
Returns points of an ellipse |
Center image between two text paragraphs. |