linea21-externals
[ class tree: linea21-externals ] [ index: linea21-externals ] [ all elements ]

Class: awMingDriver

Source Location: /class/system/artichow/php4/inc/drivers/ming.class.php

Class Overview

awDriver
   |
   --awMingDriver

Draw your objects


Variables

Methods


Inherited Variables

Inherited Methods

Class: awDriver

awDriver::awDriver()
awDriver::getDriverString()
Return the string representing the type of driver

Class Details

[line 18]
Draw your objects



[ Top ]


Class Variables

$movie =

[line 25]

The Flash movie


Type:   $movie


[ Top ]



Class Methods


constructor awMingDriver [line 27]

awMingDriver awMingDriver( )



[ Top ]

method arc [line 408]

void arc( $color $color, $center $center, int $width, int $height, int $from, int $to)

Draw a color arc



Parameters:

int   $width   Ellipse width
int   $height   Ellipse height
int   $from   Start angle
int   $to   End angle
$color   $color   Arc color
$center   $center   Point center

[ Top ]

method copyImage [line 232]

void copyImage( &$image &$image, int $p1, int $p2)

Draw an image here



Parameters:

int   $p1   Image top-left point
int   $p2   Image bottom-right point
&$image   &$image   Image

[ Top ]

method copyResizeImage [line 246]

void copyResizeImage( &$image &$image, int $d1, int $d2, int $s1, int $s2, [bool $resample = TRUE])

Draw an image here



Parameters:

int   $d1   Destination top-left position
int   $d2   Destination bottom-right position
int   $s1   Source top-left position
int   $s2   Source bottom-right position
bool   $resample   Resample image ? (default to TRUE)
&$image   &$image   Image

[ Top ]

method drawImage [line 711]

void drawImage( &$image, [ $return = FALSE], [ $header = TRUE])



Parameters:

   &$image  
   $return  
   $header  

[ Top ]

method ellipse [line 434]

void ellipse( $color $color, $center $center, int $width, int $height)

Draw a colored ellipse



Parameters:

int   $width   Ellipse width
int   $height   Ellipse height
$color   $color   Ellipse color
$center   $center   Ellipse center

[ Top ]

method filledArc [line 422]

void filledArc( $color $color, $center $center, int $width, int $height, int $from, int $to)

Draw an arc with a background color



Parameters:

int   $width   Ellipse width
int   $height   Ellipse height
int   $from   Start angle
int   $to   End angle
$color   $color   Arc background color
$center   $center   Point center

[ Top ]

method filledEllipse [line 446]

void filledEllipse( mixed $background, $center $center, int $width, int $height)

Draw an ellipse with a background



Parameters:

mixed   $background   Background (can be a color or a gradient)
int   $width   Ellipse width
int   $height   Ellipse height
$center   $center   Ellipse center

[ Top ]

method filledPolygon [line 614]

void filledPolygon( mixed $background, Polygon &$polygon)

Draw a polygon with a background



Parameters:

mixed   $background   Background (can be a color or a gradient)
Polygon   &$polygon   A polygon

[ Top ]

method filledRectangle [line 510]

void filledRectangle( mixed $background, $line $line)

Draw a rectangle with a background



Parameters:

mixed   $background   Background (can be a color or a gradient)
$line   $line   Rectangle diagonale

[ Top ]

method get [line 675]

void get( &$image &$image)

Get the image as binary data



Parameters:

&$image   &$image  

[ Top ]

method getColor [line 209]

array getColor( $color $color)

When passed a Color object, returns the corresponding color identifier (driver dependant).



Tags:

return:  A color identifier representing the color composed of the given RGB components


Parameters:

$color   $color   A Color object

[ Top ]

method getGradient [line 736]

array getGradient( $gradient $gradient)

Convert an awGradient object to an SWFGradient one.

Returns an object as well as the style of the Flash gradient.




Parameters:

$gradient   $gradient   The awGradient object to convert

[ Top ]

method getSize [line 176]

array getSize( )

Get the size of the component handled by the driver



Tags:

return:  Absolute width and height of the component


[ Top ]

method getTextHeight [line 691]

void getTextHeight( &$text)



Parameters:

   &$text  

[ Top ]

method getTextWidth [line 679]

void getTextWidth( &$text)



Parameters:

   &$text  

[ Top ]

method init [line 44]

void init( &$image &$image)

Initialize the driver for a particular awImage object



Parameters:

&$image   &$image  

[ Top ]

method initFromFile [line 89]

void initFromFile( &$fileImage &$fileImage, string $file)

Initialize the Driver for a particular FileImage object



Parameters:

string   $file   Image filename
&$fileImage   &$fileImage   The FileImage object to work on

[ Top ]

method isCompatibleWithFont [line 703]

void isCompatibleWithFont( &$font)



Parameters:

   &$font  

[ Top ]

method line [line 325]

void line( $color $color, $line $line, int $thickness)

Draw a colored line



Parameters:

int   $thickness   Line tickness
$color   $color   Line color
$line   $line  

[ Top ]

method movePosition [line 134]

void movePosition( int $x, int $y)

Move the position of the image



Parameters:

int   $x   Add this value to X axis
int   $y   Add this value to Y axis

[ Top ]

method point [line 303]

void point( $color $color, $p $p)

Draw a pixel



Parameters:

$color   $color   Pixel color
$p   $p  

[ Top ]

method polygon [line 583]

void polygon( $color $color, Polygon &$polygon)

Draw a polygon



Parameters:

$color   $color   Polygon color
Polygon   &$polygon   A polygon

[ Top ]

method rectangle [line 457]

void rectangle( $color $color, $line $line, $p2 2)

Draw a colored rectangle



Parameters:

$p2   2  
$color   $color   Rectangle color
$line   $line   Rectangle diagonale

[ Top ]

method send [line 666]

void send( &$image &$image)

Sends the image, as well as the correct HTTP headers, to the browser



Parameters:

&$image   &$image   The Image object to send

[ Top ]

method setAbsPosition [line 123]

void setAbsPosition( int $x, int $y)

Inform the driver of the position of your image This method need absolutes values



Parameters:

int   $x   Left-top corner X position
int   $y   Left-top corner Y position

[ Top ]

method setAbsSize [line 164]

void setAbsSize( int $w, int $h)

Inform the driver of the size of your image You can set absolute size with this method.



Parameters:

int   $w   Image width
int   $h   Image height

[ Top ]

method setAntiAliasing [line 185]

void setAntiAliasing( $bool)

Turn antialiasing on or off



Parameters:

   $bool  

[ Top ]

method setImageSize [line 99]

void setImageSize( int $width, int $height)

Change the image size



Parameters:

int   $width   Image width
int   $height   Image height

[ Top ]

method setPosition [line 110]

void setPosition( float $x, float $y)

Inform the driver of the position of your image



Parameters:

float   $x   Position on X axis of the center of the component
float   $y   Position on Y axis of the center of the component

[ Top ]

method setSize [line 147]

array setSize( int $w, int $h)

Inform the driver of the size of your image Height and width must be between 0 and 1.



Tags:

return:  Absolute width and height of the image


Parameters:

int   $w   Image width
int   $h   Image height

[ Top ]

method string [line 257]

void string( $point &$text, $point, [int $width = NULL])

Draw a string



Tags:

var:  Text to print


Parameters:

int   $width   Text max width
$point   &$text   Draw the text at this point
   $point  

[ Top ]


Documentation generated on Sat, 08 Nov 2008 14:53:19 +0100 by phpDocumentor 1.4.1