Show / Hide Table of Contents

Class RadialGradientTexture

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
RadialGradientTexture
Implements
IBindable
INotifyPropertyChanged
ITexture
Inherited Members
AbstractGradientTexture.Gradient
AbstractGradientTexture.Size
AbstractGradientTexture.this[Point]
AbstractGradientTexture.this[Rectangle]
AbstractBindable.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Presets.Textures
Assembly: RGB.NET.Presets.dll
Syntax
public sealed class RadialGradientTexture : AbstractGradientTexture, IBindable, INotifyPropertyChanged, ITexture

Constructors

| Edit this page View Source

RadialGradientTexture(Size, IGradient)

Initializes a new instance of the RadialGradientTexture class.

Declaration
public RadialGradientTexture(Size size, IGradient gradient)
Parameters
Type Name Description
Size size

The size of the texture.

IGradient gradient

The gradient drawn by the brush.

| Edit this page View Source

RadialGradientTexture(Size, IGradient, Point)

Initializes a new instance of the RadialGradientTexture class.

Declaration
public RadialGradientTexture(Size size, IGradient gradient, Point center)
Parameters
Type Name Description
Size size

The size of the texture.

IGradient gradient

The gradient drawn by the brush.

Point center

The center point (as percentage in the range [0..1]).

Properties

| Edit this page View Source

Center

Gets or sets the center Point (as percentage in the range [0..1]) around which the RadialGradientTexture should be drawn. (default: 0.5, 0.5)

Declaration
public Point Center { get; set; }
Property Value
Type Description
Point

Methods

| Edit this page View Source

GetColor(in Point)

Gets the color at the specified location of the texture.

Declaration
protected override 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.

Overrides
AbstractGradientTexture.GetColor(in Point)

Implements

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