Search
LinearGradientBrush Members
Constructors Properties Methods
 


Represents a linear gradient brush.

The following tables list the members exposed by the LinearGradientBrush type.

 Public Constructors

  Name Description

LinearGradientBrush

Overloaded.  

 Public Properties

  Name Description

angle

Gets or sets angle of gradient rotation.

endColor

Gets or sets the end color of the gradient.

startColor

Gets or sets the start color of the gradient.

 Public Methods

  Name Description

apply

Applies the brush properties to a CanvasRenderingContext2D drawing object.

clone

Creates a copy of this brush.

equals

Determines whether the specified object is equal to this LinearGradientBrush.

fromObject

Returns a LinearGradientBrush from a JSON object or string describing this brush.

toObject

Returns a JSON object describing this brush.

 See Also