[ Index ] |
|
Code source de Cr@wltr@ck 2.2.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 774 lignes (19 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
awMingDriver:: (32 méthodes):
awMingDriver()
init()
initFromFile()
setImageSize()
setPosition()
setAbsPosition()
movePosition()
setSize()
setAbsSize()
getSize()
setAntiAliasing()
getColor()
copyImage()
copyResizeImage()
string()
point()
line()
arc()
filledArc()
ellipse()
filledEllipse()
rectangle()
filledRectangle()
polygon()
filledPolygon()
send()
get()
getTextWidth()
getTextHeight()
isCompatibleWithFont()
drawImage()
getGradient()
Classe: awMingDriver - X-Ref
Draw your objectsawMingDriver() X-Ref |
The Flash movie |
init(&$image) X-Ref |
Initialize the driver for a particular awImage object param: &$image |
initFromFile(&$fileImage, $file) X-Ref |
Initialize the Driver for a particular FileImage object param: &$fileImage The FileImage object to work on param: string $file Image filename |
setImageSize($width, $height) X-Ref |
Change the image size param: int $width Image width param: int $height Image height |
setPosition($x, $y) X-Ref |
Inform the driver of the position of your image param: float $x Position on X axis of the center of the component param: float $y Position on Y axis of the center of the component |
setAbsPosition($x, $y) X-Ref |
Inform the driver of the position of your image This method need absolutes values param: int $x Left-top corner X position param: int $y Left-top corner Y position |
movePosition($x, $y) X-Ref |
Move the position of the image param: int $x Add this value to X axis param: int $y Add this value to Y axis |
setSize($w, $h) X-Ref |
Inform the driver of the size of your image Height and width must be between 0 and 1. param: int $w Image width param: int $h Image height return: array Absolute width and height of the image |
setAbsSize($w, $h) X-Ref |
Inform the driver of the size of your image You can set absolute size with this method. param: int $w Image width param: int $h Image height |
getSize() X-Ref |
Get the size of the component handled by the driver return: array Absolute width and height of the component |
setAntiAliasing($bool) X-Ref |
Turn antialiasing on or off |
getColor($color) X-Ref |
When passed a Color object, returns the corresponding color identifier (driver dependant). param: $color A Color object return: array $rgba A color identifier representing the color composed of the given RGB components |
copyImage(&$image, $p1, $p2) X-Ref |
Draw an image here param: &$image Image param: int $p1 Image top-left point param: int $p2 Image bottom-right point |
copyResizeImage(&$image, $d1, $d2, $s1, $s2, $resample = TRUE) X-Ref |
Draw an image here param: &$image Image param: int $d1 Destination top-left position param: int $d2 Destination bottom-right position param: int $s1 Source top-left position param: int $s2 Source bottom-right position param: bool $resample Resample image ? (default to TRUE) |
string(&$text, $point, $width = NULL) X-Ref |
Draw a string param: $point Draw the text at this point param: int $width Text max width |
point($color, $p) X-Ref |
Draw a pixel param: $color Pixel color param: $p |
line($color, $line) X-Ref |
Draw a colored line param: $color Line color param: $line param: int $thickness Line tickness |
arc($color, $center, $width, $height, $from, $to) X-Ref |
Draw a color arc param: $color Arc color param: $center Point center param: int $width Ellipse width param: int $height Ellipse height param: int $from Start angle param: int $to End angle |
filledArc($color, $center, $width, $height, $from, $to) X-Ref |
Draw an arc with a background color param: $color Arc background color param: $center Point center param: int $width Ellipse width param: int $height Ellipse height param: int $from Start angle param: int $to End angle |
ellipse($color, $center, $width, $height) X-Ref |
Draw a colored ellipse param: $color Ellipse color param: $center Ellipse center param: int $width Ellipse width param: int $height Ellipse height |
filledEllipse($background, $center, $width, $height) X-Ref |
Draw an ellipse with a background param: mixed $background Background (can be a color or a gradient) param: $center Ellipse center param: int $width Ellipse width param: int $height Ellipse height |
rectangle($color, $line) X-Ref |
Draw a colored rectangle param: $color Rectangle color param: $line Rectangle diagonale param: $p2 |
filledRectangle($background, $line) X-Ref |
Draw a rectangle with a background param: mixed $background Background (can be a color or a gradient) param: $line Rectangle diagonale |
polygon($color, &$polygon) X-Ref |
Draw a polygon param: $color Polygon color param: Polygon A polygon |
filledPolygon($background, &$polygon) X-Ref |
Draw a polygon with a background param: mixed $background Background (can be a color or a gradient) param: Polygon A polygon |
send(&$image) X-Ref |
Sends the image, as well as the correct HTTP headers, to the browser param: &$image The Image object to send |
get(&$image) X-Ref |
Get the image as binary data param: &$image |
getTextWidth(&$text) X-Ref |
Pas de description |
getTextHeight(&$text) X-Ref |
Pas de description |
isCompatibleWithFont(&$font) X-Ref |
Pas de description |
drawImage(&$image, $return = FALSE, $header = TRUE) X-Ref |
Pas de description |
getGradient($gradient) X-Ref |
Convert an awGradient object to an SWFGradient one. Returns an object as well as the style of the Flash gradient. param: $gradient The awGradient object to convert return: array |
Généré le : Thu Sep 6 14:14:11 2007 | par Balluche grâce à PHPXref 0.7 |