Struct SamplerInfo<T>
Represents the information used to sample data.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public readonly ref struct SamplerInfo<T>
Type Parameters
Name | Description |
---|---|
T | The type of the data to sample. |
Constructors
| Edit this page View SourceSamplerInfo(int, int, int, int, int, int, in ReadOnlySpan<T>)
Initializes a new instance of the SamplerInfo<T> class.
Declaration
public SamplerInfo(int x, int y, int width, int height, int stride, int dataPerPixel, in ReadOnlySpan<T> data)
Parameters
Type | Name | Description |
---|---|---|
int | x | |
int | y | |
int | width | The width of the region the data comes from. |
int | height | The height of region the data comes from. |
int | stride | |
int | dataPerPixel | |
ReadOnlySpan<T> | data | The data to sample. |
Fields
| Edit this page View SourceHeight
Gets the height of region the data comes from.
Declaration
public readonly int Height
Field Value
Type | Description |
---|---|
int |
Width
Gets the width of the region the data comes from.
Declaration
public readonly int Width
Field Value
Type | Description |
---|---|
int |
Properties
| Edit this page View Sourcethis[int]
Gets the data for the requested row.
Declaration
public ReadOnlySpan<T> this[int row] { get; }
Parameters
Type | Name | Description |
---|---|---|
int | row | The row to get the data for. |
Property Value
Type | Description |
---|---|
ReadOnlySpan<T> | A readonly span containing the data of the row. |