Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

imageellipse(3) [php man page]

IMAGEELLIPSE(3) 							 1							   IMAGEELLIPSE(3)

imageellipse - Draw an ellipse

SYNOPSIS
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 color

SYNOPSIS
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)
Man Page

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Grep all the columns based on a particular column

This is the data file that I have 21879, 0, 22, 58, 388 0, -1, 300, 1219172589765, 1708, 0, 200, 21891, 0, 0, 33, 309 0, -1, 300, 1219172591478, 1768, 0, 200, 22505, 0, 0, 33, 339 0, -1, 300, 1219172593251, 1738, 0, 200, 21888, 0, 1, 33, 308 0, -1, 300, 1219172594995, 633, 0, 200, 24878,... (2 Replies)
Discussion started by: pmallur
2 Replies

2. Linux

error while retrieving image using system imager

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)
Discussion started by: nitesh_tarbani
1 Replies

3. UNIX and Linux Applications

Corel Draw like software for Ubuntu

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)
Discussion started by: apprentice
7 Replies

4. UNIX for Dummies Questions & Answers

Need help filling in ranges

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)
Discussion started by: knott76
4 Replies

5. Shell Programming and Scripting

In a row, replace negative sign and find minimum value among four columns

Hi Friends, I have an input file like this chr1 100 200 1 2 3 4 chr1 150 200 4 5 6 7 chr2 300 400 9 6 7 1 chr2 300 410 -10 21 -11 13 chr3 700 900 -21 -22 130 165 Now, my output file is chr1 100 200 1 chr1 150 200 4 chr2 300 400 1 chr2 300 410 10 chr3 700 900 21 Remove... (5 Replies)
Discussion started by: jacobs.smith
5 Replies

6. Shell Programming and Scripting

Returns points of an ellipse

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)
Discussion started by: saeed.soltani
3 Replies

7. Solaris

.profile[21]: ulimit: exceeds allowable limit

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)
Discussion started by: Revathi2089
22 Replies

8. Web Development

Center image between two text paragraphs.

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)
Discussion started by: jcdole
3 Replies