Show / Hide Table of Contents

Class TextureBrush

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
AbstractDecoratable<IBrushDecorator>
AbstractBrush
TextureBrush
Implements
IBindable
IBrush
IDecoratable<IBrushDecorator>
IDecoratable
INotifyPropertyChanged
Inherited Members
AbstractBrush.IsEnabled
AbstractBrush.CalculationMode
AbstractBrush.Brightness
AbstractBrush.Opacity
AbstractBrush.Render(Rectangle, IEnumerable<RenderTarget>)
AbstractDecoratable<IBrushDecorator>.Decorators
AbstractDecoratable<IBrushDecorator>.AddDecorator(IBrushDecorator)
AbstractDecoratable<IBrushDecorator>.RemoveDecorator(IBrushDecorator)
AbstractDecoratable<IBrushDecorator>.RemoveAllDecorators()
AbstractBindable.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public sealed class TextureBrush : AbstractBrush, IBindable, IBrush, IDecoratable<IBrushDecorator>, IDecoratable, INotifyPropertyChanged

Constructors

| Edit this page View Source

TextureBrush(ITexture)

Initializes a new instance of the TextureBrush class.

Declaration
public TextureBrush(ITexture texture)
Parameters
Type Name Description
ITexture texture

The texture drawn by this brush.

Properties

| Edit this page View Source

Texture

Gets or sets the texture drawn by this brush.

Declaration
public ITexture Texture { get; set; }
Property Value
Type Description
ITexture

Methods

| Edit this page View Source

GetColorAtPoint(in Rectangle, in RenderTarget)

Gets the color at an specific point assuming the brush is drawn into the specified rectangle.

Declaration
protected override Color GetColorAtPoint(in Rectangle rectangle, in RenderTarget renderTarget)
Parameters
Type Name Description
Rectangle rectangle

The rectangle in which the brush should be drawn.

RenderTarget renderTarget

The target (key/point) from which the color should be taken.

Returns
Type Description
Color

The color at the specified point.

Overrides
AbstractBrush.GetColorAtPoint(in Rectangle, in RenderTarget)

Implements

IBindable
IBrush
IDecoratable<T>
IDecoratable
INotifyPropertyChanged
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX