Class Image_Graph_Fill_Gradient

Description

Gradient fill-element

This class is used throughout Image_Graph to perform gradient fills. It is mainly used for diagram-data-elements (like a bar or a line) and the diagram-grid. Note that also more than 2 colors can be provided which will result in a gradient-fill from one color to the next [...] to the last one (multiple gradients).

Located in /Graph/Fill/Gradient.php (line 48)

Image_Graph_Fill_Common
   |
   --Image_Graph_Fill_Gradient
Method Summary
 Image_Graph_Fill_Gradient Image_Graph_Fill_Gradient (array $attributes)
 void drawGDBox (resource &$img, array $pos)
 void drawGDPolygon (resource &$img, array $pos)
 void setColor (array $color)
Methods
Constructor Image_Graph_Fill_Gradient (line 56)

Constructor

  • access: public
Image_Graph_Fill_Gradient Image_Graph_Fill_Gradient (array $attributes)
  • array $attributes: attributes, e.g. "color"
drawGDBox (line 92)

Draws fill element, shape: box

  • access: public
void drawGDBox (resource &$img, array $pos)
  • resource &$img: GD-resource to draw to
  • array $pos: array of array of int; absolute position for upper left and lower right edge

Redefinition of:
Image_Graph_Fill_Common::drawGDBox()
Draws fill element, shape: box
drawGDPolygon (line 120)

Draws fill element, shape: polygon

  • access: public
void drawGDPolygon (resource &$img, array $pos)
  • resource &$img: GD-resource to draw to
  • array $pos: of array of int absolute positions of polygon-coordinates

Redefinition of:
Image_Graph_Fill_Common::drawGDPolygon()
Draws fill element, shape: polygon
setColor (line 76)

Set color

Note that also more than 2 colors can be provided which will result in a gradient-fill from one color to the next [...] to the last one (multiple gradients).

void setColor (array $color)
  • array $color: array of colors

Redefinition of:
Image_Graph_Fill_Common::setColor()
Set color

Inherited Methods

Inherited From Image_Graph_Fill_Common

 Image_Graph_Fill_Common::Image_Graph_Fill_Common()
 Image_Graph_Fill_Common::drawGDBox()
 Image_Graph_Fill_Common::drawGDPolygon()
 Image_Graph_Fill_Common::setColor()

Documentation generated on Sat, 21 Feb 2004 23:28:05 +0100 by phpDocumentor 1.3.0RC2