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.
Inherited Members
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 SourceTextureBrush(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 SourceTexture
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 SourceGetColorAtPoint(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. |