Public Method Details |
ImlibPoly |
|
public void ImlibPoly( )
|
| |
ImlibPoly constructor
|
| Returns |
void |
|
add_point |
|
public bool add_point( int $x, int $y )
|
| |
Add a point to the current polygon
|
| Parameter |
|
|
|
|
| Returns |
bool False if there is no polygon set |
|
contains_point |
|
public bool contains_point( int $x, int $y )
|
| |
Checks if the current polygon contains a given point
|
| Parameter |
|
|
|
|
| Returns |
bool True if it does, false otherwise |
|
draw |
|
public bool draw( [ integer $closed ] )
|
| |
Draw the current polygon on the current image
|
| Parameter |
|
| integer |
$closed |
= >>1<< |
|
true, the polygon will be drawn with the endpoints connected |
|
| Returns |
bool False if there is no polygon or image set |
|
fill |
|
public bool fill( )
|
| |
Fill the current polygon on the current image
|
| Returns |
bool False if there is no polygon or image set |
|
free |
|
public bool free( )
|
| |
Free the current polygon
|
| Returns |
bool False if there is no polygon or image set |
|
get_bounds |
|
public bool get_bounds( int &$x1, int &$y1, int &$x2, int &$y2 )
|
| |
Get the bounds of the polygon
|
| Parameter |
|
| int |
&$x1 |
|
|
left X coordinate |
|
|
| int |
&$y1 |
|
|
left Y coordinate |
|
|
| int |
&$x2 |
|
|
right X coordinate |
|
|
| int |
&$y2 |
|
|
right Y coordinate |
|
| Returns |
bool False if there is no polygon or image set |
|
get_image |
|
public int get_image( )
|
| |
Get the current image resource id#
|
| Returns |
int Current image resource id# |
|
new_poly |
|
public int new_poly( )
|
| |
Create a new polygon
|
| Returns |
int Resource id# of the new polygon |
|
set_image |
|
public void set_image( int $im )
|
| |
Set the image resource id# to draw on
|
| Parameter |
|
|
| Returns |
void |
|