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

Class: Image_Graph_Fill_Gradient

Source Location: /Image_Graph-0.3.0dev1/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
Image_Graph_Element::write()
Writes text to the canvas.

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Constructor
Image_Graph_Common::add()
Adds an element to the objects element list, the new Image_Graph_elements parent is automatically set
Image_Graph_Common::addNew()
Creates an object from the class specified and adds it to the objects element list.

Class Details

[line 54]
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 ]


Method Detail

Image_Graph_Fill_Gradient (Constructor)   [line 92]

Image_Graph_Fill_Gradient &Image_Graph_Fill_Gradient( int $direction, mixed $startColor, mixed $endColor, [mixed $alpha = false])

Image_Graph_GradientFill [Constructor]

Parameters:

int   $direction   —  The direction of the gradient
mixed   $startColor   —  The value of the starting color
mixed   $endColor   —  The value of the ending color
mixed   $alpha   —  The alpha channel (not supported!)

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:57:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.