Class LinearGradient
Definition
- Namespace:
- Tizen.NUI.BaseComponents.VectorGraphics
- Assembly:
- Tizen.NUI.dll
A class representing the linear gradient fill of the Shape object. Besides the class inherited from the Gradient class, it enables setting and getting the linear gradient bounds. The behavior outside the gradient bounds depends on the value specified in the spread API.
public class LinearGradient : Gradient, INotifyPropertyChanged, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
View SourceLinearGradient()
Creates an initialized linear gradient.
Declaration
public LinearGradient()
Methods
View SourceGetBounds(ref Position2D, ref Position2D)
Gets the linear gradient bounds.
Declaration
public void GetBounds(ref Position2D firstPoint, ref Position2D secondPoint)
Parameters
Type | Name | Description |
---|---|---|
Position2D | firstPoint | The first point used to determine the gradient bounds. |
Position2D | secondPoint | The second point used to determine the gradient bounds. |
SetBounds(Position2D, Position2D)
Sets the linear gradient bounds.
The bounds of the linear gradient are defined by two parallel lines crossing the given points firstPoint and secondPoint, respectively. Both lines are perpendicular to the line linking firstPoint and secondPoint.
Declaration
public void SetBounds(Position2D firstPoint, Position2D secondPoint)
Parameters
Type | Name | Description |
---|---|---|
Position2D | firstPoint | The first point used to determine the gradient bounds. |
Position2D | secondPoint | The second point used to determine the gradient bounds. |