Struct PixelAccessor<TPixel>
Provides efficient access the pixel buffers of an Image<TPixel>.
Inherited Members
Namespace: SixLabors.ImageSharp
Assembly: SixLabors.ImageSharp.dll
Syntax
public ref struct PixelAccessor<TPixel>
    where TPixel : struct, IPixel<TPixel>Type Parameters
| Name | Description | 
|---|---|
| TPixel | The pixel type. | 
Properties
| Improve this Doc View SourceHeight
Gets the height of the backing Image<TPixel>.
Declaration
public readonly int Height { get; }Property Value
| Type | Description | 
|---|---|
| Int32 | 
Width
Gets the width of the backing Image<TPixel>.
Declaration
public readonly int Width { get; }Property Value
| Type | Description | 
|---|---|
| Int32 | 
Methods
| Improve this Doc View SourceGetRowSpan(Int32)
Gets the representation of the pixels as a Span<T> of contiguous memory
at row rowIndex beginning from the first pixel on that row.
Declaration
public Span<TPixel> GetRowSpan(int rowIndex)Parameters
| Type | Name | Description | 
|---|---|---|
| Int32 | rowIndex | The row index. | 
Returns
| Type | Description | 
|---|---|
| Span<TPixel> | The Span<T>. | 
Exceptions
| Type | Condition | 
|---|---|
| ArgumentOutOfRangeException | Thrown when row index is out of range. |