IMAGEFILLEDPOLYGON(3) 1 IMAGEFILLEDPOLYGON(3)imagefilledpolygon - Draw a filled polygonSYNOPSIS
bool imagefilledpolygon (resource $image, array $points, int $num_points, int $color)
DESCRIPTION imagefilledpolygon(3) creates a filled polygon in the given $image.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $points
- An array containing the x and y coordinates of the polygons vertices consecutively.
o $num_points
- Total number of vertices, which must be at least 3.
o $color
- A color identifier created with imagecolorallocate(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
imagefilledpolygon(3) example
<?php
// set up array of points for polygon
$values = array(
40, 50, // Point 1 (x, y)
20, 240, // Point 2 (x, y)
60, 60, // Point 3 (x, y)
240, 20, // Point 4 (x, y)
50, 40, // Point 5 (x, y)
10, 10 // Point 6 (x, y)
);
// create image
$image = imagecreatetruecolor(250, 250);
// allocate colors
$bg = imagecolorallocate($image, 0, 0, 0);
$blue = imagecolorallocate($image, 0, 0, 255);
// fill the background
imagefilledrectangle($image, 0, 0, 249, 249, $bg);
// draw a polygon
imagefilledpolygon($image, $values, 6, $blue);
// flush image
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagefilledpolygon()
PHP Documentation Group IMAGEFILLEDPOLYGON(3)
Check Out this Related Man Page
IMAGEFILL(3) 1 IMAGEFILL(3)imagefill - Flood fillSYNOPSIS
bool imagefill (resource $image, int $x, int $y, int $color)
DESCRIPTION
Performs a flood fill starting at the given coordinate (top left is 0, 0) with the given $color in the $image.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $x
- x-coordinate of start point.
o $y
- y-coordinate of start point.
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
imagefill(3) example
<?php
$im = imagecreatetruecolor(100, 100);
// sets background to red
$red = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 0, 0, $red);
header('Content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagefill()
SEE ALSO imagecolorallocate(3).
PHP Documentation Group IMAGEFILL(3)
Hi, (HP-UX 11.11)
I need to create a tape image of an igniteUX image created on our igniteUX server.
That is to say. I have a "Online" image of the igniteUX of the targeted system but I now need to copy it to a useable TAPE (igniteUX) image so i can build an other server from it that is not... (3 Replies)
Point.h
#pragma once
#include <iostream>
using namespace std;
class Point
{
private:
int x;
int y;
public:
Point(void);
Point( int x, int y );
Point( const Point &xPoint );
~Point(void); (0 Replies)
Hello,
I have an mksysb image in my disk, created like:
# mksysb -i /mnt/backup/lpar2.image
I want to know if this image could be copied to a tape and make it a boot image.
Thanks
Enzote (3 Replies)
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)
I have two points which represent the start and end points of a line. I need to interpolate a number of points on the line between the two points.
Point 1:
x = 455989.0
y = 8673453.4
Point 2:
x = 283957.6
y = 8691250.1
The two points I have are coordinates given in UTM format. x... (3 Replies)
Hi:
I have this server running SCO 5.0.6 with Counter Point Point of Sales, I did an upgrade to the CPoint software to be able to process credit card and debit card transactions, need to install Pin Pads in the work stations that are in remote location, and can't make the pin pad to work.
I'm... (2 Replies)
I am pretty new to scripting and i was wondering if anyone could help me out.
Here is the situation. I am trying to make an action folder that when an image is saved to it, the image is automatically moved to a folder based upon the first 4 or 5 integers of the name.
image names come in a... (2 Replies)
hi,
I am trying to embed an image to the body of the email, but the image is not visible.
echo "<html>
<body>
<style>
body {background-color:blue}
</style>
<h1>hello</h1>
<center>
<img... (1 Reply)
Hi experts, I have a file "salida_test" containing (in repetitive way):
Point ID 1.750251
Point Name >BRI_4L_SA2__INT Interruptor 33kV Parque Industrial <
value 2
Time of last value update (ascii): >03/07/17 11:11:14.596 ART<
TLQ 0000000c00004000
station #79 ... (6 Replies)