From d0a9b9a03fc7ae74ef8a64593ac6b592526ec4d5 Mon Sep 17 00:00:00 2001 From: pp Date: Wed, 19 May 2004 04:59:31 +0000 Subject: - initial import git-svn-id: https://siedziba.pl:790/svn/repos/php-imlib/trunk@7 455248ca-bdda-0310-9134-f4ebb693071a --- phpdoc/ImlibPoly.html | 880 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 880 insertions(+) create mode 100644 phpdoc/ImlibPoly.html (limited to 'phpdoc/ImlibPoly.html') diff --git a/phpdoc/ImlibPoly.html b/phpdoc/ImlibPoly.html new file mode 100644 index 0000000..469f3fd --- /dev/null +++ b/phpdoc/ImlibPoly.html @@ -0,0 +1,880 @@ + + + + + PHP Imlib2 Classes - Imlib - Class: ImlibPoly + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + +
PackageindexClasstreesModulegroupsElementlistReportXML Files
+

+ File: /home/matt/src/cvs/imlib/docs/class.ImlibPoly.php +
PHP Imlib2 Classes - Imlib
+

ImlibPoly

+ ImlibColor
   |
  +-- ImlibCliprect
     |
    +-- ImlibPoly
+

+ Does everything relevant to creating and drawing or filling an n-point polygon +

+   +

+

public class ImlibPoly extends ImlibCliprect

+ Does everything relevant to creating and drawing or filling an n-point polygon +
+ The routine for getting a polygon onto an image is generally to create one,add all its points (The order in which the points are added determines howthe polygon will be drawn), set the image to draw on, and draw. +

+ + + + + + + + + +
AuthorsMatt McClanahan <cardinal@dodds.net>
Version0.3
+

 

+ + + + + + + +

Methods inherited from ImlibCliprect

imlibcliprect, get_cliprect, get_cliprect_array, get_cliprect_inuse, set_cliprect, set_cliprect_array, set_cliprect_inuse
+
+ + + + + + + +

Methods inherited from ImlibColor

imlibcolor, get_color, get_color_array, set_color, set_color_array
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Method Summary

void

ImlibPoly()

ImlibPoly constructor
bool

add_point(int $x, int $y)

Add a point to the current polygon
bool

contains_point(int $x, int $y)

Checks if the current polygon contains a given point
bool

draw([ integer $closed ])

Draw the current polygon on the current image
bool

fill()

Fill the current polygon on the current image
bool

free()

Free the current polygon
bool

get_bounds(int &$x1, int &$y1, int &$x2, int &$y2)

Get the bounds of the polygon
int

get_image()

Get the current image resource id#
int

new_poly()

Create a new polygon
void

set_image(int $im)

Set the image resource id# to draw on
+
+ + + + + + + +

Fields inherited from ImlibCliprect

$cliprect, $cliprect_inuse
+
+ + + + + + + +

Fields inherited from ImlibColor

$color
+
+ + + + + + + + + + + + + + + +

Private Field Summary

unknown

$im

Resource id# of the image to draw on
unknown

$poly

The resource id# of the current polygon
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Method Details

ImlibPoly

+ public void ImlibPoly( )

+

  + ImlibPoly constructor +
+ +

+ +

Returnsvoid


add_point

+ public bool add_point( int $x, int $y )

+

  + Add a point to the current polygon +
+ +

+ +

Parameter
+ + + + + + + + + + +
int$x
coordinate
+
+ + + + + + + + + + +
int$y
coordinate
+
Returnsbool

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
+ + + + + + + + + + +
int$x
coordinate
+
+ + + + + + + + + + +
int$y
coordinate
+
Returnsbool

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
+
Returnsbool

False if there is no polygon or image set


fill

+ public bool fill( )

+

  + Fill the current polygon on the current image +
+ +

+ +

Returnsbool

False if there is no polygon or image set


free

+ public bool free( )

+

  + Free the current polygon +
+ +

+ +

Returnsbool

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
+
Returnsbool

False if there is no polygon or image set


get_image

+ public int get_image( )

+

  + Get the current image resource id# +
+ +

+ +

Returnsint

Current image resource id#


new_poly

+ public int new_poly( )

+

  + Create a new polygon +
+ +

+ +

Returnsint

Resource id# of the new polygon


set_image

+ public void set_image( int $im )

+

  + Set the image resource id# to draw on +
+ +

+ +

Parameter
+ + + + + + + + + + +
int$im
resource id#
+
Returnsvoid


+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Private Field Details

$im

+ private unknown $im +

+ >><< +

+ Resource id# of the image to draw on +
+ +


$poly

+ private unknown $poly +

+ >><< +

+ The resource id# of the current polygon +
+ +


+

+ + + + + + + + + +
PackageindexClasstreesModulegroupsElementlistReportXML Files
+
PHPDoc 1.0beta
+ + + -- cgit v1.2.3