Interface ITexture
Represents a generic texture.
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public interface ITexture
Properties
| Edit this page View SourceEmpty
Gets a empty texture.
Declaration
public static ITexture Empty { get; }
Property Value
Type | Description |
---|---|
ITexture |
this[Point]
Gets the color at the specified location.
Declaration
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
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
Size Size { get; }
Property Value
Type | Description |
---|---|
Size |