MindFusion.Charting for JavaScript Programmer's Guide
LinearGradientBrush.apply Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Applies the brush properties to a CanvasRenderingContext2D drawing object.

Namespace: MindFusion.Drawing
File: Brush.js

## Syntax

JavaScript Copy Code
function apply (context, bounds)

### Parameters

context

  Type: CanvasRenderingContext2D
  The CanvasRenderingContext2D drawing object.

bounds

  Type: Rect
  The bounds of the gradient.

## See Also

LinearGradientBrush Members
LinearGradientBrush Class
MindFusion.Drawing Namespace