Main Page | Packages | Class Tree | Index | Help

xp.system

class RadialGradientBrush

Object
  |
  +--xp.system.GradientBrush
        |
        +--xp.system.RadialGradientBrush

Implemented Interfaces: ICloneable

class RadialGradientBrush
extends GradientBrush

Defines a radial gradient used to fill an area.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
type: String
radial type gradient

Fields inherited from class xp.system.GradientBrush

alphas, colors, matrix, ratios, rotation, type

Constructor

public
RadialGradientBrush ( colors: Array, rotation: Number, ratios: Array)
Construct a new brush object

Method Summary

public
clone ( ): Object
Clones this brush



Field Documentation

type

public var type: String
radial type gradient


Constructor Documentation

RadialGradientBrush

public function RadialGradientBrush(colors: Array,
 rotation: Number,
 ratios: Array)
Construct a new brush object

Parameters:
colors
An array of ARGB hex color values to be used in the gradient (for example, red is 0xFFFF0000, blue is 0xFF0000FF, and so on).
rotation
ratios
An array of color distribution ratios; valid values are 0–255. This value defines the percentage of the width where the color is sampled at 100 percent.

Method Documentation

clone

public function clone(): Object
Clones this brush

Specified by:
clone in interface ICloneable

Returns:
a new brush instance.


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc