Main Page | Packages | Class Tree | Index | Help

xp.system

class LinearGradientBrush

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

Implemented Interfaces: ICloneable

class LinearGradientBrush
extends GradientBrush



Field Summary

public
type: String
linear type gradient

Fields inherited from class xp.system.GradientBrush

alphas, colors, matrix, ratios, rotation, type

Constructor

public
LinearGradientBrush ( 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
linear type gradient


Constructor Documentation

LinearGradientBrush

public function LinearGradientBrush(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