fillstyle
[ class tree: fillstyle ] [ index: fillstyle ] [ all elements ]

Class: Image_Graph_Fill_Gradient

Source Location: /Graph/Fill/Gradient.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Element
      |
      --Image_Graph_Fill
         |
         --Image_Graph_Fill_Image
            |
            --Image_Graph_Fill_Gradient

Fill using a gradient color.


Methods


Inherited Variables

Inherited Methods

Class: Image_Graph_Fill_Image

Image_Graph_Fill_Image::Image_Graph_Fill_Image()
Image_Graph_ImageFill [Constructor]

Class: Image_Graph_Element

Image_Graph_Element::height()
The height of the element on the canvas
Image_Graph_Element::setBackground()
Sets the background fill style of the element
Image_Graph_Element::setBackgroundColor()
Sets the background color of the element
Image_Graph_Element::setBorderColor()
Sets the border color of the element
Image_Graph_Element::setBorderStyle()
Sets the border line style of the element
Image_Graph_Element::setFillColor()
Sets the fill color of the element
Image_Graph_Element::setFillStyle()
Sets the fill style of the element
Image_Graph_Element::setFont()
Sets the font of the element
Image_Graph_Element::setLineColor()
Sets the line color of the element
Image_Graph_Element::setLineStyle()
Sets the line style of the element
Image_Graph_Element::setPadding()
Sets padding of the element
Image_Graph_Element::showShadow()
Shows shadow on the element
Image_Graph_Element::width()
The width of the element on the canvas

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Creates an a instance of Image_Graph_Common.
Image_Graph_Common::add()
Adds an element to the objects element list, the new Image_Graph_elements parent is automatically set
Image_Graph_Common::addColor()
Add a color. Ultimately it should call addColor() from the Image_Graph object
Image_Graph_Common::newColor()
Create a new Image_Graph_color.
Image_Graph_Common::setName()
Sets the name

Class Details

[line 51]
Fill using a gradient color.

This creates a scaled fillstyle with colors flowing gradiently between 2 specified RGB values. Several directions are supported:

  1. . Vertically (IMAGE_GRAPH_GRAD_VERTICAL)
  2. . Horizontally (IMAGE_GRAPH_GRAD_HORIZONTAL)
  3. . Mirrored vertically (the color grades from a-b-a vertically) (IMAGE_GRAPH_GRAD_VERTICAL_MIRRORED)
  4. . Mirrored horizontally (the color grades from a-b-a horizontally) IMAGE_GRAPH_GRAD_HORIZONTAL_MIRRORED
  5. . Diagonally from top-left to right-bottom (IMAGE_GRAPH_GRAD_DIAGONALLY_TL_BR)
  6. . Diagonally from bottom-left to top-right (IMAGE_GRAPH_GRAD_DIAGONALLY_BL_TR)
  7. . Radially (concentric circles in the center) (IMAGE_GRAPH_GRAD_RADIAL)




[ Top ]


Class Methods


constructor Image_Graph_Fill_Gradient [line 90]

Image_Graph_Fill_Gradient &Image_Graph_Fill_Gradient( int $direction, int $startColor, int $endColor, [int $count = 100], [int $alpha = 0])

Image_Graph_GradientFill [Constructor]



Parameters:

int   $direction   The direction of the gradient
int   $startColor   The RGB value of the starting color
int   $endColor   The RGB value of the ending color
int   $count   The number of steps to be made between the 2 colors (the more the more smooth, but more ressources are required). 100 is default.
int   $alpha   The alpha-blend (not supported yet)

[ Top ]


Documentation generated on Wed, 15 Sep 2004 10:30:27 +0200 by phpDocumentor 1.2.3