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

Class: awImage

Source Location: /class/system/artichow/php4/Image.class.php

Class Overview


An image for a graph


Variables

Methods


Child classes:

AntiSpam String printed on the images are case insensitive.
A graph
awFileImage
Load an image from a file

Class Details

[line 76]
An image for a graph



[ Top ]


Class Variables

$antiAliasing =  FALSE

[line 97]

Use anti-aliasing ?


Type:   bool


[ Top ]

$background =

[line 111]

Image background color


Type:   Color


[ Top ]

$border =

[line 146]

Image border


Type:   Border


[ Top ]

$driver =

[line 125]

A Driver object


Type:   Driver


[ Top ]

$driverString =

[line 132]

Driver string


Type:   string


[ Top ]

$format =  IMAGE_PNG

[line 104]

Image format


Type:   int


[ Top ]

$height =

[line 90]

Graph height


Type:   int


[ Top ]

$resource =

[line 118]

GD resource


Type:   resource


[ Top ]

$shadow =

[line 139]

Shadow


Type:   Shadow


[ Top ]

$width =

[line 83]

Graph width


Type:   int


[ Top ]



Class Methods


constructor awImage [line 172]

awImage awImage( )

Build the image



[ Top ]

method create [line 323]

void create( )

Create a new awimage



[ Top ]

method drawComponent [line 370]

void drawComponent( &$component)

Draw a component on the image



Tags:

var:  A component


Parameters:

   &$component  

[ Top ]

method drawError [line 471]

void drawError( $message)



Parameters:

   $message  

[ Top ]

method drawErrorFile [line 561]

void drawErrorFile( $error)



Parameters:

   $error  

[ Top ]

method drawShadow [line 417]

void drawShadow( )



[ Top ]

method get [line 442]

void get( )

Return the image content as binary data



[ Top ]

method getAntiAliasing [line 278]

bool getAntiAliasing( )

Return the antialiasing setting



[ Top ]

method getBackground [line 260]

mixed getBackground( )

Return image background, whether a Color or a Gradient



[ Top ]

method getDriver [line 189]

Driver getDriver( [int $w = 1], [int $h = 1], [float $x = 0.5], [float $y = 0.5])

Get driver of the image



Parameters:

int   $w   Driver width (from 0 to 1) (default to 1)
int   $h   Driver height (from 0 to 1) (default to 1)
float   $x   Position on X axis of the center of the driver (default to 0.5)
float   $y   Position on Y axis of the center of the driver (default to 0.5)

[ Top ]

method getFormat [line 298]

unknown getFormat( )

Returns the image format as an integer



[ Top ]

method getFormatString [line 307]

string getFormatString( )

Returns the image format as a string



[ Top ]

method selectDriver [line 341]

mixed selectDriver( string $driver)

Select the correct driver



Parameters:

string   $driver   The desired driver

[ Top ]

method send [line 434]

void send( )

Send the image into a file or to the user browser



[ Top ]

method sendHeaders [line 450]

void sendHeaders( )

Send the correct HTTP header according to the image type



[ Top ]

method setAntiAliasing [line 269]

void setAntiAliasing( $bool)

Turn antialiasing on or off



Parameters:

   $bool  

[ Top ]

method setBackground [line 229]

void setBackground( mixed $background)

Change image background



Parameters:

mixed   $background  

[ Top ]

method setBackgroundColor [line 242]

void setBackgroundColor( $color $color)

Change image background color



Parameters:

$color   $color  

[ Top ]

method setBackgroundGradient [line 251]

void setBackgroundGradient( $gradient $gradient)

Change image background gradient



Parameters:

$gradient   $gradient  

[ Top ]

method setDriver [line 201]

void setDriver( string $driverString)

Sets the driver that will be used to draw the graph



Parameters:

string   $driverString  

[ Top ]

method setFormat [line 287]

void setFormat( $format)

Change image format



Tags:

var:  New image format


Parameters:

   $format  

[ Top ]

method setSize [line 213]

void setSize( $width, $height)

Change the image size



Tags:

var:  Image width


Parameters:

   $width  
   $height  

[ Top ]


Documentation generated on Sat, 08 Nov 2008 14:52:36 +0100 by phpDocumentor 1.4.1