Class AbstractGradientTexture
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inheritance
AbstractGradientTexture
Inherited Members
Namespace: RGB.NET.Presets.Textures
Assembly: RGB.NET.Presets.dll
Syntax
public abstract class AbstractGradientTexture : AbstractBindable, IBindable, INotifyPropertyChanged, ITexture
Constructors
| Edit this page View SourceAbstractGradientTexture(Size, IGradient)
Initializes a new instance of the AbstractGradientTexture class.
Declaration
protected AbstractGradientTexture(Size size, IGradient gradient)
Parameters
| Type | Name | Description |
|---|---|---|
| Size | size | The size of the texture. |
| IGradient | gradient | The gradient used to generate this texture. |
Properties
| Edit this page View SourceGradient
Gets the gradient used to generate this texture.
Declaration
public IGradient Gradient { get; }
Property Value
| Type | Description |
|---|---|
| IGradient |
this[Point]
Gets the color at the specified location.
Declaration
public Color this[in Point point] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point | The location to get the color from. |
Property Value
| Type | Description |
|---|---|
| Color | The color at the specified location. |
this[Rectangle]
Gets the sampled color inside the specified rectangle.
Declaration
public Color this[in Rectangle rectangle] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| Rectangle | rectangle | The rectangle to get the color from. |
Property Value
| Type | Description |
|---|---|
| Color | The sampled color. |
Size
Gets the size of the texture
Declaration
public Size Size { get; }
Property Value
| Type | Description |
|---|---|
| Size |
Methods
| Edit this page View SourceGetColor(in Point)
Gets the color at the specified location of the texture.
Declaration
protected abstract Color GetColor(in Point point)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | point | The location to get the color from. |
Returns
| Type | Description |
|---|---|
| Color | The color at the specified location. |