Interface IPixel<TSelf>
- Namespace
- SixLabors.ImageSharp.PixelFormats
- Assembly
- SixLabors.ImageSharp.dll
An interface that represents a generic pixel type. The naming convention of each pixel format is to order the color components from least significant to most significant, reading from left to right. For example in the Rgba32 pixel format the R component is the least significant byte, and the A component is the most significant.
public interface IPixel<TSelf> : IPixel, IEquatable<TSelf> where TSelf : unmanaged, IPixel<TSelf>
Type Parameters
TSelf
The type implementing this interface
- Inherited Members
Methods
CreatePixelOperations()
Creates a PixelOperations<TPixel> instance for this pixel type. This method is not intended to be consumed directly. Use Instance instead.
PixelOperations<TSelf> CreatePixelOperations()
Returns
- PixelOperations<TSelf>
The PixelOperations<TPixel> instance.