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

Class: Image_Graph_Fill_Gradient

Source Location: /Image_Graph-0.8.0/Graph/Fill/Gradient.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Fill
      |
      --Image_Graph_Fill_Gradient

Fill using a gradient color.


Author(s):

Version:

  • Release: 0.8.0

Copyright:

  • 2003-2009 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Constructor [Image_Graph_Common]
Image_Graph_Common::add()
Adds an element to the objects element list.
Image_Graph_Common::addNew()
Creates an object from the class and adds it to the objects element list.
Image_Graph_Common::hide()
Hide the element

Class Details

[line 70]
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 101]

Image_Graph_Fill_Gradient Image_Graph_Fill_Gradient( int $direction, mixed $startColor, mixed $endColor)

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

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.