IMAGEELLIPSE(3) 1 IMAGEELLIPSE(3)imageellipse - Draw an ellipseSYNOPSIS
bool imageellipse (resource $image, int $cx, int $cy, int $width, int $height, int $color)
DESCRIPTION
Draws an ellipse centered at the specified coordinates.
PARAMETERS
o $
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 VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #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()
NOTES
Note
This function requires GD 2.0.2 or later.
SEE ALSO imagefilledellipse(3), imagearc(3).
PHP Documentation Group IMAGEELLIPSE(3)
Check Out this Related Man Page
IMAGEFILLTOBORDER(3) 1 IMAGEFILLTOBORDER(3)imagefilltoborder - Flood fill to specific colorSYNOPSIS
bool imagefilltoborder (resource $image, int $x, int $y, int $border, int $color)
DESCRIPTION imagefilltoborder(3) performs a flood fill whose border color is defined by $border. The starting point for the fill is $x, $y (top left is
0, 0) and the region is filled with color $color.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $x
- x-coordinate of start.
o $y
- y-coordinate of start.
o $border
- The border color. A color identifier created with imagecolorallocate(3).
o $color
- The fill color. A color identifier created with imagecolorallocate(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Filling an ellipse with a color
<?php
// Create the image handle, set the background to white
$im = imagecreatetruecolor(100, 100);
imagefilledrectangle($im, 0, 0, 100, 100, imagecolorallocate($im, 255, 255, 255));
// Draw an ellipse to fill with a black border
imageellipse($im, 50, 50, 50, 50, imagecolorallocate($im, 0, 0, 0));
// Set the border and fill colors
$border = imagecolorallocate($im, 0, 0, 0);
$fill = imagecolorallocate($im, 255, 0, 0);
// Fill the selection
imagefilltoborder($im, 50, 50, $border, $fill);
// Output and free memory
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : Filling an ellipse with a color
PHP Documentation Group IMAGEFILLTOBORDER(3)
This is the error that I am getting while retrieving image from image server using system imager....
Listening on LPF/lo/<null>
sending on Socket/fallback/fallback-net
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval5... (1 Reply)
Hi guys,
I need a software for Ubuntu
*which has the capabilities of Corel Draw
*which can open/import and use a .cdr template, i.e., template created by Corel Draw.
*which has the same color codes, i.e., names for colors
I have looked through Google, some suggested ones are Inkscape,... (7 Replies)
I have a list of about 200,000 lines in a text file that look like this:
1 1 120
1 80 200
1 150 270
5 50 170
5 100 220
5 300 420
The first column is an identifier, the next 2 columns are a range (always 120 value range)
I'm trying fill in the values of those ranges, and remove... (4 Replies)
Hi,
Dose any one know, How can i return a 3D ellipse points if i have these information about the ellipse?
All 3 length of axes, dip of each plane and azimuth of each axes.
i.e., axes length=(1 cm, 2 cm, 3cm);dip of planes=(15 deg, 80 deg);azimuth of each axes=(10 deg,50 deg, 120 deg).
I... (3 Replies)
Hello All,
I am having an issue with ellipse environment,
Subscribing ellipse version /opt/mincom/ellipse/bs037__ora_cics_svr
.profile: ulimit: exceeds allowable limit ,
prj -l ellsupp
#ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192... (22 Replies)
I want to show a page with an image between 2 any paragraphs.
I tried the following script.
But the image is not centered.
SUSE Paste
<!DOCTYPE html>
<html>
<head>
<style>
center.center_1 {
margin: auto;
width: 60%;
... (3 Replies)