[ Index ]
 

Code source de phpMyVisites 2.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libs/artichow/php4/inc/ -> Drawer.class.php (sommaire)

(pas de description)

Poids: 1129 lignes (23 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

awDrawer:: (24 méthodes):
  awDrawer()
  setImageSize()
  setPosition()
  setAbsPosition()
  movePosition()
  setSize()
  setAbsSize()
  getSize()
  copyImage()
  copyResizeImage()
  string()
  point()
  line()
  arc()
  filledArc()
  ellipse()
  filledEllipse()
  rectangle()
  filledRectangle()
  polygon()
  filledPolygon()
  getPolygonPoints()
  startThickness()
  stopThickness()

awGradientDrawer:: (16 méthodes):
  awGradientDrawer()
  drawFilledFlatTriangle()
  filledRectangle()
  filledPolygon()
  rectangleLinearGradient()
  filledEllipse()
  ellipseRadialGradient()
  ellipseLinearGradient()
  polygonLinearGradient()
  next()
  init()
  color()
  getRed()
  getGreen()
  getBlue()
  getAlpha()


Classe: awDrawer  - X-Ref

Draw your objects

awDrawer($resource)   X-Ref
Build your drawer


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 drawer 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 drawer 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 drawer 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 drawer 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 drawer

return: array Absolute width and height of the component

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)   X-Ref
Draw a string

param: $point Draw the text at this point

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

getPolygonPoints(&$polygon)   X-Ref
Pas de description

startThickness($thickness)   X-Ref
Pas de description

stopThickness($thickness)   X-Ref
Pas de description

Classe: awGradientDrawer  - X-Ref

To your gradients

awGradientDrawer($drawer)   X-Ref
Build your GradientDrawer


drawFilledFlatTriangle($gradient, $a, $b, $c)   X-Ref
Pas de description

filledRectangle($gradient, $p1, $p2)   X-Ref
Pas de description

filledPolygon($gradient, &$polygon)   X-Ref
Pas de description

rectangleLinearGradient(&$gradient, $p1, $p2)   X-Ref
Pas de description

filledEllipse($gradient, $x1, $y1, $x2, $y2)   X-Ref
Pas de description

ellipseRadialGradient($gradient, $x1, $y1, $x2, $y2)   X-Ref
Pas de description

ellipseLinearGradient($gradient, $x1, $y1, $x2, $y2)   X-Ref
Pas de description

polygonLinearGradient(&$gradient, &$polygon)   X-Ref
Pas de description

next($polygon, &$pos, &$prev, &$next)   X-Ref
Pas de description

init($gradient, $size)   X-Ref
Pas de description

color($pos)   X-Ref
Pas de description

getRed($pos)   X-Ref
Pas de description

getGreen($pos)   X-Ref
Pas de description

getBlue($pos)   X-Ref
Pas de description

getAlpha($pos)   X-Ref
Pas de description



Généré le : Mon Nov 26 14:10:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics