Show / Hide Table of Contents

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
object
AbstractBindable
AbstractGradientTexture
ConicalGradientTexture
LinearGradientTexture
RadialGradientTexture
Implements
IBindable
INotifyPropertyChanged
ITexture
Inherited Members
AbstractBindable.PropertyChanged
AbstractBindable.RequiresUpdate<T>(ref T, T)
AbstractBindable.SetProperty<T>(ref T, T, string)
AbstractBindable.OnPropertyChanged(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Presets.Textures
Assembly: RGB.NET.Presets.dll
Syntax
public abstract class AbstractGradientTexture : AbstractBindable, IBindable, INotifyPropertyChanged, ITexture

Constructors

| Edit this page View Source

AbstractGradientTexture(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 Source

Gradient

Gets the gradient used to generate this texture.

Declaration
public IGradient Gradient { get; }
Property Value
Type Description
IGradient
| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

Size

Gets the size of the texture

Declaration
public Size Size { get; }
Property Value
Type Description
Size

Methods

| Edit this page View Source

GetColor(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.

Implements

IBindable
INotifyPropertyChanged
ITexture
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX