Main Page | Packages | Class Tree | Index | Help

xp.system

class SolidColorBrush

Number
  |
  +--xp.system.SolidColorBrush

Implemented Interfaces: IBrush, ICloneable

class SolidColorBrush
extends Number

Defines a brush of a single color.

Use a SolidColorBrush to fill an area with a solid color. The Brushes class contains SolidColorBrush objects with predefined colors, such as Blue and Yellow. The SolidColorBrush class represents only solid-color fills; For a variety of other, more complex, ways you can fill an area, such as gradients see LinearGradientBrush, RadialGradientBrush and images ImageBrush, ImageGridBrush.


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
alpha: Number
An alpha value; valid values are 0–100. If the value is less than 0, Flash uses 0. If the value is greater than 100, Flash uses 100.

public static
Black: SolidColorBrush
static black color brush

public
color: Number
An RGB hex color value (for example, red is 0xFF0000, blue is 0x0000FF, and so on).

public static
RGBMode: Boolean
A 24Bit RGB value is the same as a 32Bit ARGB value with alpha 0. If true then 24 bit numbers and 32bit numbers with 0x00 will be assumed to have alpha=100

public static
Transparent: SolidColorBrush
static transparent color brush

public static
White: SolidColorBrush
static white color brush

Constructor

public
SolidColorBrush ( color: Number, alpha: Number)
Initializes a new SolidColorBrush object of the specified color.

Method Summary

public
clone ( ): Object
Clones this brush



Field Documentation

alpha

public var alpha: Number
An alpha value; valid values are 0–100. If the value is less than 0, Flash uses 0. If the value is greater than 100, Flash uses 100.

Black

public static var Black: SolidColorBrush
static black color brush

color

public var color: Number
An RGB hex color value (for example, red is 0xFF0000, blue is 0x0000FF, and so on).

RGBMode

public static var RGBMode: Boolean
A 24Bit RGB value is the same as a 32Bit ARGB value with alpha 0. If true then 24 bit numbers and 32bit numbers with 0x00 will be assumed to have alpha=100

Transparent

public static var Transparent: SolidColorBrush
static transparent color brush

White

public static var White: SolidColorBrush
static white color brush


Constructor Documentation

SolidColorBrush

public function SolidColorBrush(color: Number,
 alpha: Number)
Initializes a new SolidColorBrush object of the specified color.

Parameters:
color
an ARGB hex color value. Can optionally be an RGB value but must then specify an alpha value
alpha
optional param to controls the opacity of the color. a value between 0-100.

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