Class AssociatedAlphaPixelOperations<TPixel>
- Namespace
- SixLabors.ImageSharp.PixelFormats
- Assembly
- SixLabors.ImageSharp.dll
Provides bulk operations for pixel formats that store associated alpha.
public abstract class AssociatedAlphaPixelOperations<TPixel> : PixelOperations<TPixel> where TPixel : unmanaged, IPixel<TPixel>
Type Parameters
TPixelThe associated-alpha pixel format.
- Inheritance
-
PixelOperations<TPixel>AssociatedAlphaPixelOperations<TPixel>
- Inherited Members
Methods
FromAbgr32(Configuration, ReadOnlySpan<Abgr32>, Span<TPixel>)
Converts all pixels in 'source` span of Abgr32 into a span of TPixel-s.
public override void FromAbgr32(Configuration configuration, ReadOnlySpan<Abgr32> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<Abgr32>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromArgb32(Configuration, ReadOnlySpan<Argb32>, Span<TPixel>)
Converts all pixels in 'source` span of Argb32 into a span of TPixel-s.
public override void FromArgb32(Configuration configuration, ReadOnlySpan<Argb32> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<Argb32>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromAssociatedScaledVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>)
Converts associated scaled vectors to pixels.
protected override abstract void FromAssociatedScaledVector4Destructive(Configuration configuration, Span<Vector4> source, Span<TPixel> destination)
Parameters
configurationConfigurationThe configuration.
sourceSpan<Vector4>The source vectors. Implementations may modify this buffer during conversion.
destinationSpan<TPixel>The destination pixels.
FromAssociatedVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>)
Converts associated vectors in the pixel format's native numeric range to pixels.
protected override abstract void FromAssociatedVector4Destructive(Configuration configuration, Span<Vector4> source, Span<TPixel> destination)
Parameters
configurationConfigurationThe configuration.
sourceSpan<Vector4>The source vectors. Implementations may modify this buffer during conversion.
destinationSpan<TPixel>The destination pixels.
FromBgr24(Configuration, ReadOnlySpan<Bgr24>, Span<TPixel>)
Converts all pixels in 'source` span of Bgr24 into a span of TPixel-s.
public override void FromBgr24(Configuration configuration, ReadOnlySpan<Bgr24> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<Bgr24>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromBgra32(Configuration, ReadOnlySpan<Bgra32>, Span<TPixel>)
Converts all pixels in 'source` span of Bgra32 into a span of TPixel-s.
public override void FromBgra32(Configuration configuration, ReadOnlySpan<Bgra32> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<Bgra32>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromBgra5551(Configuration, ReadOnlySpan<Bgra5551>, Span<TPixel>)
Converts all pixels in 'source` span of Bgra5551 into a span of TPixel-s.
public override void FromBgra5551(Configuration configuration, ReadOnlySpan<Bgra5551> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<Bgra5551>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromL16(Configuration, ReadOnlySpan<L16>, Span<TPixel>)
Converts all pixels in 'source` span of L16 into a span of TPixel-s.
public override void FromL16(Configuration configuration, ReadOnlySpan<L16> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<L16>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromL8(Configuration, ReadOnlySpan<L8>, Span<TPixel>)
Converts all pixels in 'source` span of L8 into a span of TPixel-s.
public override void FromL8(Configuration configuration, ReadOnlySpan<L8> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<L8>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromLa16(Configuration, ReadOnlySpan<La16>, Span<TPixel>)
Converts all pixels in 'source` span of La16 into a span of TPixel-s.
public override void FromLa16(Configuration configuration, ReadOnlySpan<La16> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<La16>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromLa32(Configuration, ReadOnlySpan<La32>, Span<TPixel>)
Converts all pixels in 'source` span of La32 into a span of TPixel-s.
public override void FromLa32(Configuration configuration, ReadOnlySpan<La32> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<La32>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromRgb24(Configuration, ReadOnlySpan<Rgb24>, Span<TPixel>)
Converts all pixels in 'source` span of Rgb24 into a span of TPixel-s.
public override void FromRgb24(Configuration configuration, ReadOnlySpan<Rgb24> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<Rgb24>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromRgb48(Configuration, ReadOnlySpan<Rgb48>, Span<TPixel>)
Converts all pixels in 'source` span of Rgb48 into a span of TPixel-s.
public override void FromRgb48(Configuration configuration, ReadOnlySpan<Rgb48> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<Rgb48>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromRgba32(Configuration, ReadOnlySpan<Rgba32>, Span<TPixel>)
Converts all pixels in 'source` span of Rgba32 into a span of TPixel-s.
public override void FromRgba32(Configuration configuration, ReadOnlySpan<Rgba32> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<Rgba32>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromRgba64(Configuration, ReadOnlySpan<Rgba64>, Span<TPixel>)
Converts all pixels in 'source` span of Rgba64 into a span of TPixel-s.
public override void FromRgba64(Configuration configuration, ReadOnlySpan<Rgba64> source, Span<TPixel> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<Rgba64>destinationSpan<TPixel>The Span<T> to the destination pixels.
FromUnassociatedScaledVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>)
Converts unassociated scaled vectors to pixels.
protected override abstract void FromUnassociatedScaledVector4Destructive(Configuration configuration, Span<Vector4> source, Span<TPixel> destination)
Parameters
configurationConfigurationThe configuration.
sourceSpan<Vector4>The source vectors. Implementations may modify this buffer during conversion.
destinationSpan<TPixel>The destination pixels.
FromUnassociatedVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>)
Converts unassociated vectors in the pixel format's native numeric range to pixels.
protected override abstract void FromUnassociatedVector4Destructive(Configuration configuration, Span<Vector4> source, Span<TPixel> destination)
Parameters
configurationConfigurationThe configuration.
sourceSpan<Vector4>The source vectors. Implementations may modify this buffer during conversion.
destinationSpan<TPixel>The destination pixels.
FromVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>, PixelConversionModifiers)
Converts vectors to pixels using the numeric range, alpha representation, and companding specified by modifiers.
The contents of sourceVectors are not preserved.
public override void FromVector4Destructive(Configuration configuration, Span<Vector4> sourceVectors, Span<TPixel> destination, PixelConversionModifiers modifiers)
Parameters
configurationConfigurationThe configuration.
sourceVectorsSpan<Vector4>The source vectors. Their contents may be modified during conversion.
destinationSpan<TPixel>The destination pixels.
modifiersPixelConversionModifiersThe representation of the source vectors and the transformations applied before storing the pixels.
Remarks
Callers must not rely on the contents of sourceVectors after this method returns.
From<TSourcePixel>(Configuration, ReadOnlySpan<TSourcePixel>, Span<TPixel>)
Bulk operation that converts source pixels from TSourcePixel format to
TPixel destination pixels.
public override void From<TSourcePixel>(Configuration configuration, ReadOnlySpan<TSourcePixel> source, Span<TPixel> destination) where TSourcePixel : unmanaged, IPixel<TSourcePixel>
Parameters
configurationConfigurationA Configuration to configure internal operations.
sourceReadOnlySpan<TSourcePixel>The ReadOnlySpan<T> to the source pixels.
destinationSpan<TPixel>The Span<T> to the destination pixels.
Type Parameters
TSourcePixelThe source pixel type.
GetPixelBlender(PixelColorBlendingMode, PixelAlphaCompositionMode)
Find an instance of the pixel blender.
public override PixelBlender<TPixel> GetPixelBlender(PixelColorBlendingMode colorMode, PixelAlphaCompositionMode alphaMode)
Parameters
colorModePixelColorBlendingModeThe color blending mode to apply
alphaModePixelAlphaCompositionModeThe alpha composition mode to apply
Returns
- PixelBlender<TPixel>
ToAbgr32(Configuration, ReadOnlySpan<TPixel>, Span<Abgr32>)
Converts all pixels of the 'source` span to a span of Abgr32-s.
public override void ToAbgr32(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Abgr32> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<Abgr32>The destination span of Abgr32 data.
ToArgb32(Configuration, ReadOnlySpan<TPixel>, Span<Argb32>)
Converts all pixels of the 'source` span to a span of Argb32-s.
public override void ToArgb32(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Argb32> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<Argb32>The destination span of Argb32 data.
ToAssociatedScaledVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>)
Converts pixels to associated scaled vectors.
protected override abstract void ToAssociatedScaledVector4(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Vector4> destination)
Parameters
configurationConfigurationThe configuration.
sourceReadOnlySpan<TPixel>The source pixels.
destinationSpan<Vector4>The destination vectors.
ToAssociatedVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>)
Converts pixels to associated vectors in the pixel format's native numeric range.
protected override abstract void ToAssociatedVector4(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Vector4> destination)
Parameters
configurationConfigurationThe configuration.
sourceReadOnlySpan<TPixel>The source pixels.
destinationSpan<Vector4>The destination vectors.
ToBgr24(Configuration, ReadOnlySpan<TPixel>, Span<Bgr24>)
Converts all pixels of the 'source` span to a span of Bgr24-s.
public override void ToBgr24(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Bgr24> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<Bgr24>The destination span of Bgr24 data.
ToBgra32(Configuration, ReadOnlySpan<TPixel>, Span<Bgra32>)
Converts all pixels of the 'source` span to a span of Bgra32-s.
public override void ToBgra32(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Bgra32> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<Bgra32>The destination span of Bgra32 data.
ToBgra5551(Configuration, ReadOnlySpan<TPixel>, Span<Bgra5551>)
Converts all pixels of the 'source` span to a span of Bgra5551-s.
public override void ToBgra5551(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Bgra5551> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<Bgra5551>The destination span of Bgra5551 data.
ToL16(Configuration, ReadOnlySpan<TPixel>, Span<L16>)
Converts all pixels of the 'source` span to a span of L16-s.
public override void ToL16(Configuration configuration, ReadOnlySpan<TPixel> source, Span<L16> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<L16>The destination span of L16 data.
ToL8(Configuration, ReadOnlySpan<TPixel>, Span<L8>)
Converts all pixels of the 'source` span to a span of L8-s.
public override void ToL8(Configuration configuration, ReadOnlySpan<TPixel> source, Span<L8> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<L8>The destination span of L8 data.
ToLa16(Configuration, ReadOnlySpan<TPixel>, Span<La16>)
Converts all pixels of the 'source` span to a span of La16-s.
public override void ToLa16(Configuration configuration, ReadOnlySpan<TPixel> source, Span<La16> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<La16>The destination span of La16 data.
ToLa32(Configuration, ReadOnlySpan<TPixel>, Span<La32>)
Converts all pixels of the 'source` span to a span of La32-s.
public override void ToLa32(Configuration configuration, ReadOnlySpan<TPixel> source, Span<La32> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<La32>The destination span of La32 data.
ToRgb24(Configuration, ReadOnlySpan<TPixel>, Span<Rgb24>)
Converts all pixels of the 'source` span to a span of Rgb24-s.
public override void ToRgb24(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Rgb24> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<Rgb24>The destination span of Rgb24 data.
ToRgb48(Configuration, ReadOnlySpan<TPixel>, Span<Rgb48>)
Converts all pixels of the 'source` span to a span of Rgb48-s.
public override void ToRgb48(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Rgb48> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<Rgb48>The destination span of Rgb48 data.
ToRgba32(Configuration, ReadOnlySpan<TPixel>, Span<Rgba32>)
Converts all pixels of the 'source` span to a span of Rgba32-s.
public override void ToRgba32(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Rgba32> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<Rgba32>The destination span of Rgba32 data.
ToRgba64(Configuration, ReadOnlySpan<TPixel>, Span<Rgba64>)
Converts all pixels of the 'source` span to a span of Rgba64-s.
public override void ToRgba64(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Rgba64> destination)
Parameters
configurationConfigurationA Configuration to configure internal operations
sourceReadOnlySpan<TPixel>The span of source pixels
destinationSpan<Rgba64>The destination span of Rgba64 data.
ToUnassociatedScaledVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>)
Converts pixels to the unassociated scaled vector representation used by color operations.
protected override abstract void ToUnassociatedScaledVector4(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Vector4> destination)
Parameters
configurationConfigurationThe configuration.
sourceReadOnlySpan<TPixel>The source pixels.
destinationSpan<Vector4>The destination vectors.
ToUnassociatedVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>)
Converts pixels to unassociated vectors in the pixel format's native numeric range.
protected override abstract void ToUnassociatedVector4(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Vector4> destination)
Parameters
configurationConfigurationThe configuration.
sourceReadOnlySpan<TPixel>The source pixels.
destinationSpan<Vector4>The destination vectors.
ToVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>, PixelConversionModifiers)
Converts pixels to vectors using the numeric range, alpha representation, and companding specified by modifiers.
public override void ToVector4(Configuration configuration, ReadOnlySpan<TPixel> source, Span<Vector4> destinationVectors, PixelConversionModifiers modifiers)
Parameters
configurationConfigurationThe configuration.
sourceReadOnlySpan<TPixel>The source pixels.
destinationVectorsSpan<Vector4>The destination vectors.
modifiersPixelConversionModifiersThe requested vector representation and the transformations applied after reading the pixels.