Represents a brush painting with a linear gradient.
More...
|
| LinearGradientBrush (Point startPoint, Point endPoint, IEnumerable< GradientStop > gradientStops) |
| Creates a new LinearGradientBrush with the specified start point, end point and gradient stops. More...
|
|
| LinearGradientBrush (Point startPoint, Point endPoint, params GradientStop[] gradientStops) |
| Creates a new LinearGradientBrush with the specified start point, end point and gradient stops. More...
|
|
LinearGradientBrush | RelativeTo (Graphics referenceGraphics) |
| Returns a LinearGradientBrush with the same gradient stops as the current instance, whose start and end point correspond to the points of the current instance in the original reference frame of the referenceGraphics . This involves computing the current transform matrix of the referenceGraphics , inverting it, and applying the inverse matrix to the StartPoint and EndPoint of the current instance. More...
|
|
override Brush | MultiplyOpacity (double opacity) |
| Returns a brush corresponding the current instance, with the specified opacity multiplication applied. - Parameters
-
opacity | The value that will be used to multiply the opacity of the brush. |
- Returns
- A brush corresponding the current instance, with the specified opacity multiplication applied.
More...
|
|
abstract Brush | MultiplyOpacity (double opacity) |
| Returns a brush corresponding the current instance, with the specified opacity multiplication applied. More...
|
|
|
Point | StartPoint [get] |
| The starting point of the gradient. Note that this is relative to the current coordinate system when the gradient is used. More...
|
|
Point | EndPoint [get] |
| The end point of the gradient. Note that this is relative to the current coordinate system when the gradient is used. More...
|
|
GradientStops | GradientStops [get] |
| The colour stops in the gradient. More...
|
|
Represents a brush painting with a linear gradient.
Definition at line 291 of file Brush.cs.
◆ LinearGradientBrush() [1/2]
VectSharp.LinearGradientBrush.LinearGradientBrush |
( |
Point |
startPoint, |
|
|
Point |
endPoint, |
|
|
IEnumerable< GradientStop > |
gradientStops |
|
) |
| |
Creates a new LinearGradientBrush with the specified start point, end point and gradient stops.
- Parameters
-
startPoint | The starting point of the gradient. Note that this is relative to the current coordinate system when the gradient is used. |
endPoint | The ending point of the gradient. Note that this is relative to the current coordinate system when the gradient is used. |
gradientStops | The colour stops in the gradient. |
Definition at line 309 of file Brush.cs.
◆ LinearGradientBrush() [2/2]
VectSharp.LinearGradientBrush.LinearGradientBrush |
( |
Point |
startPoint, |
|
|
Point |
endPoint, |
|
|
params GradientStop[] |
gradientStops |
|
) |
| |
Creates a new LinearGradientBrush with the specified start point, end point and gradient stops.
- Parameters
-
startPoint | The starting point of the gradient. Note that this is relative to the current coordinate system when the gradient is used. |
endPoint | The ending point of the gradient. Note that this is relative to the current coordinate system when the gradient is used. |
gradientStops | The colour stops in the gradient. |
Definition at line 323 of file Brush.cs.
◆ MultiplyOpacity()
override Brush VectSharp.LinearGradientBrush.MultiplyOpacity |
( |
double |
opacity | ) |
|
|
virtual |
Returns a brush corresponding the current instance, with the specified opacity multiplication applied.
- Parameters
-
opacity | The value that will be used to multiply the opacity of the brush. |
- Returns
- A brush corresponding the current instance, with the specified opacity multiplication applied.
Implements VectSharp.Brush.
Definition at line 406 of file Brush.cs.
◆ RelativeTo()
Returns a LinearGradientBrush with the same gradient stops as the current instance, whose start and end point correspond to the points of the current instance in the original reference frame of the referenceGraphics . This involves computing the current transform matrix of the referenceGraphics , inverting it, and applying the inverse matrix to the StartPoint and EndPoint of the current instance.
- Parameters
-
referenceGraphics | The Graphics whose original reference frame is to be used. |
- Returns
- A LinearGradientBrush with the same gradient stops as the current instance, whose start and end point correspond to the points of the current instance in the original reference frame of the referenceGraphics .
Definition at line 356 of file Brush.cs.
◆ EndPoint
Point VectSharp.LinearGradientBrush.EndPoint |
|
get |
The end point of the gradient. Note that this is relative to the current coordinate system when the gradient is used.
Definition at line 301 of file Brush.cs.
◆ StartPoint
Point VectSharp.LinearGradientBrush.StartPoint |
|
get |
The starting point of the gradient. Note that this is relative to the current coordinate system when the gradient is used.
Definition at line 296 of file Brush.cs.
The documentation for this class was generated from the following file: