• Articles
  • API Documentation
  • SixLabors.ImageSharp.PixelFormats
  • PixelOperations<TPixel>
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp
      • Color
      • ColorMatrix
      • Configuration
      • DenseMatrix<T>
      • GeometryUtilities
      • GraphicOptionsDefaultsExtensions
      • GraphicsOptions
      • IConfigurationModule
      • IDeepCloneable
      • IDeepCloneable<T>
      • IImage
      • IImageInfo
      • Image
      • Image<TPixel>
      • ImageExtensions
      • ImageFormatException
      • ImageFrame
      • ImageFrame<TPixel>
      • ImageFrameCollection
      • ImageFrameCollection<TPixel>
      • ImageInfoExtensions
      • ImageProcessingException
      • IndexedImageFrame<TPixel>
      • InvalidImageContentException
      • Matrix3x2Extensions
      • MetadataExtensions
      • Number
      • Point
      • PointF
      • Rational
      • ReadOrigin
      • Rectangle
      • RectangleF
      • SignedRational
      • Size
      • SizeF
      • UnknownImageFormatException
    • SixLabors.ImageSharp.Advanced
      • AdvancedImageExtensions
      • IImageVisitor
      • IImageVisitorAsync
      • IRowIntervalOperation
      • IRowIntervalOperation<TBuffer>
      • IRowOperation
      • IRowOperation<TBuffer>
      • ParallelExecutionSettings
      • ParallelRowIterator
    • SixLabors.ImageSharp.ColorSpaces
      • CieLab
      • CieLch
      • CieLchuv
      • CieLuv
      • CieXyy
      • CieXyz
      • Cmyk
      • Hsl
      • Hsv
      • HunterLab
      • Illuminants
      • LinearRgb
      • Lms
      • Rgb
      • RgbWorkingSpaces
      • YCbCr
    • SixLabors.ImageSharp.ColorSpaces.Companding
      • GammaCompanding
      • LCompanding
      • Rec2020Companding
      • Rec709Companding
      • SRgbCompanding
    • SixLabors.ImageSharp.ColorSpaces.Conversion
      • CieXyChromaticityCoordinates
      • ColorSpaceConverter
      • ColorSpaceConverterOptions
      • GammaWorkingSpace
      • IChromaticAdaptation
      • LmsAdaptationMatrix
      • LWorkingSpace
      • Rec2020WorkingSpace
      • Rec709WorkingSpace
      • RgbPrimariesChromaticityCoordinates
      • RgbWorkingSpace
      • SRgbWorkingSpace
      • VonKriesChromaticAdaptation
    • SixLabors.ImageSharp.Formats
      • IImageDecoder
      • IImageEncoder
      • IImageFormat
      • IImageFormat<TFormatMetadata, TFormatFrameMetadata>
      • IImageFormat<TFormatMetadata>
      • IImageFormatDetector
      • IImageInfoDetector
      • ImageFormatManager
      • PixelTypeInfo
    • SixLabors.ImageSharp.Formats.Bmp
      • BmpBitsPerPixel
      • BmpConfigurationModule
      • BmpDecoder
      • BmpEncoder
      • BmpFileMarkerType
      • BmpFormat
      • BmpImageFormatDetector
      • BmpInfoHeaderType
      • BmpMetadata
      • RleSkippedPixelHandling
    • SixLabors.ImageSharp.Formats.Gif
      • GifColorTableMode
      • GifConfigurationModule
      • GifDecoder
      • GifDisposalMethod
      • GifEncoder
      • GifFormat
      • GifFrameMetadata
      • GifImageFormatDetector
      • GifMetadata
      • IGifExtension
    • SixLabors.ImageSharp.Formats.Jpeg
      • JpegConfigurationModule
      • JpegDecoder
      • JpegEncoder
      • JpegFormat
      • JpegImageFormatDetector
      • JpegMetadata
      • JpegSubsample
    • SixLabors.ImageSharp.Formats.Png
      • PngBitDepth
      • PngChunkFilter
      • PngColorType
      • PngCompressionLevel
      • PngConfigurationModule
      • PngDecoder
      • PngEncoder
      • PngFilterMethod
      • PngFormat
      • PngImageFormatDetector
      • PngInterlaceMode
      • PngMetadata
      • PngTextData
      • PngTransparentColorMode
    • SixLabors.ImageSharp.Formats.Tga
      • TgaBitsPerPixel
      • TgaCompression
      • TgaConfigurationModule
      • TgaDecoder
      • TgaEncoder
      • TgaFormat
      • TgaImageFormatDetector
      • TgaImageType
      • TgaImageTypeExtensions
      • TgaMetadata
    • SixLabors.ImageSharp.Memory
      • AllocationOptions
      • ArrayPoolMemoryAllocator
      • Buffer2D<T>
      • Buffer2DExtensions
      • Buffer2DRegion<T>
      • IManagedByteBuffer
      • IMemoryGroup<T>
      • InvalidMemoryOperationException
      • MemoryAllocator
      • MemoryAllocatorExtensions
      • RowInterval
      • SimpleGcMemoryAllocator
    • SixLabors.ImageSharp.Metadata
      • FrameDecodingMode
      • ImageFrameMetadata
      • ImageMetadata
      • PixelResolutionUnit
    • SixLabors.ImageSharp.Metadata.Profiles.Exif
      • ExifDataType
      • ExifParts
      • ExifProfile
      • ExifTag
      • ExifTag<TValueType>
      • IExifValue
      • IExifValue<TValueType>
    • SixLabors.ImageSharp.Metadata.Profiles.Icc
      • IccColorSpaceType
      • IccDeviceAttribute
      • IccPrimaryPlatformType
      • IccProfile
      • IccProfileClass
      • IccProfileFlag
      • IccProfileHeader
      • IccProfileId
      • IccProfileTag
      • IccRenderingIntent
      • IccTagDataEntry
      • IccTypeSignature
      • IccVersion
      • InvalidIccProfileException
    • SixLabors.ImageSharp.Metadata.Profiles.Iptc
      • IptcProfile
      • IptcTag
      • IptcTagExtensions
      • IptcValue
    • SixLabors.ImageSharp.PixelFormats
      • A8
      • Argb32
      • Bgr24
      • Bgr565
      • Bgra32
      • Bgra4444
      • Bgra5551
      • Byte4
      • HalfSingle
      • HalfVector2
      • HalfVector4
      • IPackedVector<TPacked>
      • IPixel
      • IPixel<TSelf>
      • L16
      • L8
      • La16
      • La32
      • NormalizedByte2
      • NormalizedByte4
      • NormalizedShort2
      • NormalizedShort4
      • PixelAlphaCompositionMode
      • PixelAlphaRepresentation
      • PixelBlender<TPixel>
      • PixelColorBlendingMode
      • PixelConversionModifiers
      • PixelOperations<TPixel>
      • Rg32
      • Rgb24
      • Rgb48
      • Rgba1010102
      • Rgba32
      • Rgba64
      • RgbaVector
      • Short2
      • Short4
    • SixLabors.ImageSharp.Processing
      • AdaptiveThresholdExtensions
      • AffineTransformBuilder
      • AnchorPositionMode
      • AutoOrientExtensions
      • BackgroundColorExtensions
      • BinaryDitherExtensions
      • BinaryThresholdExtensions
      • BinaryThresholdMode
      • BlackWhiteExtensions
      • BokehBlurExtensions
      • BoxBlurExtensions
      • BrightnessExtensions
      • ColorBlindnessExtensions
      • ColorBlindnessMode
      • ContrastExtensions
      • CropExtensions
      • DetectEdgesExtensions
      • DitherExtensions
      • DrawImageExtensions
      • EntropyCropExtensions
      • FilterExtensions
      • FlipExtensions
      • FlipMode
      • GaussianBlurExtensions
      • GaussianSharpenExtensions
      • GlowExtensions
      • GrayscaleExtensions
      • GrayscaleMode
      • HistogramEqualizationExtensions
      • HueExtensions
      • IImageProcessingContext
      • InvertExtensions
      • KnownDitherings
      • KnownEdgeDetectorKernels
      • KnownFilterMatrices
      • KnownQuantizers
      • KnownResamplers
      • KodachromeExtensions
      • LightnessExtensions
      • LomographExtensions
      • OilPaintExtensions
      • OpacityExtensions
      • PadExtensions
      • PixelateExtensions
      • PixelRowDelegateExtensions
      • PixelRowOperation
      • PixelRowOperation<T>
      • PolaroidExtensions
      • ProcessingExtensions
      • ProjectiveTransformBuilder
      • QuantizeExtensions
      • ResizeExtensions
      • ResizeMode
      • ResizeOptions
      • RotateExtensions
      • RotateFlipExtensions
      • RotateMode
      • SaturateExtensions
      • SepiaExtensions
      • SkewExtensions
      • TaperCorner
      • TaperSide
      • TransformExtensions
      • VignetteExtensions
    • SixLabors.ImageSharp.Processing.Extensions.Transforms
      • SwizzleExtensions
    • SixLabors.ImageSharp.Processing.Processors
      • CloningImageProcessor
      • CloningImageProcessor<TPixel>
      • ICloningImageProcessor
      • ICloningImageProcessor<TPixel>
      • IImageProcessor
      • IImageProcessor<TPixel>
      • ImageProcessor<TPixel>
    • SixLabors.ImageSharp.Processing.Processors.Binarization
      • AdaptiveThresholdProcessor
      • BinaryThresholdProcessor
    • SixLabors.ImageSharp.Processing.Processors.Convolution
      • BokehBlurProcessor
      • BoxBlurProcessor
      • EdgeDetector2DKernel
      • EdgeDetector2DProcessor
      • EdgeDetectorCompassKernel
      • EdgeDetectorCompassProcessor
      • EdgeDetectorKernel
      • EdgeDetectorProcessor
      • GaussianBlurProcessor
      • GaussianSharpenProcessor
    • SixLabors.ImageSharp.Processing.Processors.Dithering
      • ErrorDither
      • IDither
      • IPaletteDitherImageProcessor<TPixel>
      • OrderedDither
      • PaletteDitherProcessor
    • SixLabors.ImageSharp.Processing.Processors.Drawing
      • DrawImageProcessor
    • SixLabors.ImageSharp.Processing.Processors.Effects
      • IPixelRowDelegate
      • OilPaintingProcessor
      • PixelateProcessor
    • SixLabors.ImageSharp.Processing.Processors.Filters
      • AchromatomalyProcessor
      • AchromatopsiaProcessor
      • BlackWhiteProcessor
      • BrightnessProcessor
      • ContrastProcessor
      • DeuteranomalyProcessor
      • DeuteranopiaProcessor
      • FilterProcessor
      • GrayscaleBt601Processor
      • GrayscaleBt709Processor
      • HueProcessor
      • InvertProcessor
      • KodachromeProcessor
      • LightnessProcessor
      • LomographProcessor
      • OpacityProcessor
      • PolaroidProcessor
      • ProtanomalyProcessor
      • ProtanopiaProcessor
      • SaturateProcessor
      • SepiaProcessor
      • TritanomalyProcessor
      • TritanopiaProcessor
    • SixLabors.ImageSharp.Processing.Processors.Normalization
      • AdaptiveHistogramEqualizationProcessor
      • AdaptiveHistogramEqualizationSlidingWindowProcessor
      • GlobalHistogramEqualizationProcessor
      • HistogramEqualizationMethod
      • HistogramEqualizationOptions
      • HistogramEqualizationProcessor
    • SixLabors.ImageSharp.Processing.Processors.Overlays
      • BackgroundColorProcessor
      • GlowProcessor
      • VignetteProcessor
    • SixLabors.ImageSharp.Processing.Processors.Quantization
      • DefaultPixelSamplingStrategy
      • ExtensivePixelSamplingStrategy
      • IPixelSamplingStrategy
      • IQuantizer
      • IQuantizer<TPixel>
      • OctreeQuantizer
      • OctreeQuantizer<TPixel>
      • PaletteQuantizer
      • QuantizeProcessor
      • QuantizerConstants
      • QuantizerOptions
      • QuantizerUtilities
      • WebSafePaletteQuantizer
      • WernerPaletteQuantizer
      • WuQuantizer
    • SixLabors.ImageSharp.Processing.Processors.Transforms
      • AffineTransformProcessor
      • AutoOrientProcessor
      • BicubicResampler
      • BoxResampler
      • CropProcessor
      • CubicResampler
      • DegenerateTransformException
      • EntropyCropProcessor
      • FlipProcessor
      • IResampler
      • IResamplingTransformImageProcessor<TPixel>
      • ISwizzler
      • LanczosResampler
      • NearestNeighborResampler
      • ProjectiveTransformProcessor
      • ResizeProcessor
      • RotateProcessor
      • SkewProcessor
      • SwizzleProcessor<TSwizzler>
      • TriangleResampler
      • WelchResampler

    Class PixelOperations

    A stateless class implementing Strategy Pattern for batched pixel-data conversion operations for pixel buffers of type TPixel.

    Inheritance
    Object
    PixelOperations<TPixel>
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: SixLabors.ImageSharp.PixelFormats
    Assembly: SixLabors.ImageSharp.dll
    Syntax
    public class PixelOperations<TPixel>
        where TPixel : struct, IPixel<TPixel>
    Type Parameters
    Name Description
    TPixel

    The pixel format.

    Properties

    | Improve this Doc View Source

    Instance

    Gets the global PixelOperations<TPixel> instance for the pixel type TPixel

    Declaration
    public static PixelOperations<TPixel> Instance { get; }
    Property Value
    Type Description
    PixelOperations<TPixel>

    Methods

    | Improve this Doc View Source

    From<TSourcePixel>(Configuration, ReadOnlySpan<TSourcePixel>, Span<TPixel>)

    Bulk operation that copies the sourcePixels to destinationPixels in TSourcePixel format.

    Declaration
    public virtual void From<TSourcePixel>(Configuration configuration, ReadOnlySpan<TSourcePixel> sourcePixels, Span<TPixel> destinationPixels)
        where TSourcePixel : struct, IPixel<TSourcePixel>
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<TSourcePixel> sourcePixels

    The ReadOnlySpan<T> to the source pixels.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Type Parameters
    Name Description
    TSourcePixel

    The destination pixel type.

    | Improve this Doc View Source

    FromArgb32(Configuration, ReadOnlySpan<Argb32>, Span<TPixel>)

    Converts all pixels in 'source` span of Argb32 into a span of TPixel-s.

    Declaration
    public virtual void FromArgb32(Configuration configuration, ReadOnlySpan<Argb32> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Argb32> source

    The source Span<T> of Argb32 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromArgb32Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromArgb32(Configuration, ReadOnlySpan<Argb32>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with Argb32 layout.

    Declaration
    public void FromArgb32Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromBgr24(Configuration, ReadOnlySpan<Bgr24>, Span<TPixel>)

    Converts all pixels in 'source` span of Bgr24 into a span of TPixel-s.

    Declaration
    public virtual void FromBgr24(Configuration configuration, ReadOnlySpan<Bgr24> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Bgr24> source

    The source Span<T> of Bgr24 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromBgr24Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromBgr24(Configuration, ReadOnlySpan<Bgr24>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with Bgr24 layout.

    Declaration
    public void FromBgr24Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromBgra32(Configuration, ReadOnlySpan<Bgra32>, Span<TPixel>)

    Converts all pixels in 'source` span of Bgra32 into a span of TPixel-s.

    Declaration
    public virtual void FromBgra32(Configuration configuration, ReadOnlySpan<Bgra32> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Bgra32> source

    The source Span<T> of Bgra32 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromBgra32Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromBgra32(Configuration, ReadOnlySpan<Bgra32>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with Bgra32 layout.

    Declaration
    public void FromBgra32Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromBgra5551(Configuration, ReadOnlySpan<Bgra5551>, Span<TPixel>)

    Converts all pixels in 'source` span of Bgra5551 into a span of TPixel-s.

    Declaration
    public virtual void FromBgra5551(Configuration configuration, ReadOnlySpan<Bgra5551> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Bgra5551> source

    The source Span<T> of Bgra5551 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromBgra5551Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromBgra5551(Configuration, ReadOnlySpan<Bgra5551>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with Bgra5551 layout.

    Declaration
    public void FromBgra5551Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromL16(Configuration, ReadOnlySpan<L16>, Span<TPixel>)

    Converts all pixels in 'source` span of L16 into a span of TPixel-s.

    Declaration
    public virtual void FromL16(Configuration configuration, ReadOnlySpan<L16> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<L16> source

    The source Span<T> of L16 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromL16Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromL16(Configuration, ReadOnlySpan<L16>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with L16 layout.

    Declaration
    public void FromL16Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromL8(Configuration, ReadOnlySpan<L8>, Span<TPixel>)

    Converts all pixels in 'source` span of L8 into a span of TPixel-s.

    Declaration
    public virtual void FromL8(Configuration configuration, ReadOnlySpan<L8> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<L8> source

    The source Span<T> of L8 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromL8Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromL8(Configuration, ReadOnlySpan<L8>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with L8 layout.

    Declaration
    public void FromL8Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromLa16(Configuration, ReadOnlySpan<La16>, Span<TPixel>)

    Converts all pixels in 'source` span of La16 into a span of TPixel-s.

    Declaration
    public virtual void FromLa16(Configuration configuration, ReadOnlySpan<La16> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<La16> source

    The source Span<T> of La16 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromLa16Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromLa16(Configuration, ReadOnlySpan<La16>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with La16 layout.

    Declaration
    public void FromLa16Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromLa32(Configuration, ReadOnlySpan<La32>, Span<TPixel>)

    Converts all pixels in 'source` span of La32 into a span of TPixel-s.

    Declaration
    public virtual void FromLa32(Configuration configuration, ReadOnlySpan<La32> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<La32> source

    The source Span<T> of La32 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromLa32Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromLa32(Configuration, ReadOnlySpan<La32>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with La32 layout.

    Declaration
    public void FromLa32Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromRgb24(Configuration, ReadOnlySpan<Rgb24>, Span<TPixel>)

    Converts all pixels in 'source` span of Rgb24 into a span of TPixel-s.

    Declaration
    public virtual void FromRgb24(Configuration configuration, ReadOnlySpan<Rgb24> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Rgb24> source

    The source Span<T> of Rgb24 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromRgb24Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromRgb24(Configuration, ReadOnlySpan<Rgb24>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with Rgb24 layout.

    Declaration
    public void FromRgb24Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromRgb48(Configuration, ReadOnlySpan<Rgb48>, Span<TPixel>)

    Converts all pixels in 'source` span of Rgb48 into a span of TPixel-s.

    Declaration
    public virtual void FromRgb48(Configuration configuration, ReadOnlySpan<Rgb48> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Rgb48> source

    The source Span<T> of Rgb48 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromRgb48Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromRgb48(Configuration, ReadOnlySpan<Rgb48>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with Rgb48 layout.

    Declaration
    public void FromRgb48Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromRgba32(Configuration, ReadOnlySpan<Rgba32>, Span<TPixel>)

    Converts all pixels in 'source` span of Rgba32 into a span of TPixel-s.

    Declaration
    public virtual void FromRgba32(Configuration configuration, ReadOnlySpan<Rgba32> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Rgba32> source

    The source Span<T> of Rgba32 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromRgba32Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromRgba32(Configuration, ReadOnlySpan<Rgba32>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with Rgba32 layout.

    Declaration
    public void FromRgba32Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromRgba64(Configuration, ReadOnlySpan<Rgba64>, Span<TPixel>)

    Converts all pixels in 'source` span of Rgba64 into a span of TPixel-s.

    Declaration
    public virtual void FromRgba64(Configuration configuration, ReadOnlySpan<Rgba64> source, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Rgba64> source

    The source Span<T> of Rgba64 data.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    | Improve this Doc View Source

    FromRgba64Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)

    A helper for FromRgba64(Configuration, ReadOnlySpan<Rgba64>, Span<TPixel>) that expects a byte span. The layout of the data in 'sourceBytes' must be compatible with Rgba64 layout.

    Declaration
    public void FromRgba64Bytes(Configuration configuration, ReadOnlySpan<byte> sourceBytes, Span<TPixel> destinationPixels, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<Byte> sourceBytes

    The ReadOnlySpan<T> to the source bytes.

    Span<TPixel> destinationPixels

    The Span<T> to the destination pixels.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    FromVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>)

    Bulk version of FromVector4(Vector4) converting 'sourceVectors.Length' pixels into 'destinationColors'. The method is DESTRUCTIVE altering the contents of sourceVectors.

    Declaration
    public void FromVector4Destructive(Configuration configuration, Span<Vector4> sourceVectors, Span<TPixel> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    Span<Vector4> sourceVectors

    The Span<T> to the source vectors.

    Span<TPixel> destinationPixels

    The Span<T> to the destination colors.

    Remarks

    The destructive behavior is a design choice for performance reasons. In a typical use case the contents of sourceVectors are abandoned after the conversion.

    | Improve this Doc View Source

    FromVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>, PixelConversionModifiers)

    Bulk version of FromVector4(Vector4) converting 'sourceVectors.Length' pixels into 'destinationColors'. The method is DESTRUCTIVE altering the contents of sourceVectors.

    Declaration
    public virtual void FromVector4Destructive(Configuration configuration, Span<Vector4> sourceVectors, Span<TPixel> destinationPixels, PixelConversionModifiers modifiers)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    Span<Vector4> sourceVectors

    The Span<T> to the source vectors.

    Span<TPixel> destinationPixels

    The Span<T> to the destination colors.

    PixelConversionModifiers modifiers

    The PixelConversionModifiers to apply during the conversion

    Remarks

    The destructive behavior is a design choice for performance reasons. In a typical use case the contents of sourceVectors are abandoned after the conversion.

    | Improve this Doc View Source

    GetPixelBlender(GraphicsOptions)

    Find an instance of the pixel blender.

    Declaration
    public PixelBlender<TPixel> GetPixelBlender(GraphicsOptions options)
    Parameters
    Type Name Description
    GraphicsOptions options

    the blending and composition to apply

    Returns
    Type Description
    PixelBlender<TPixel>

    A PixelBlender<TPixel>.

    | Improve this Doc View Source

    GetPixelBlender(PixelColorBlendingMode, PixelAlphaCompositionMode)

    Find an instance of the pixel blender.

    Declaration
    public virtual PixelBlender<TPixel> GetPixelBlender(PixelColorBlendingMode colorMode, PixelAlphaCompositionMode alphaMode)
    Parameters
    Type Name Description
    PixelColorBlendingMode colorMode

    The color blending mode to apply

    PixelAlphaCompositionMode alphaMode

    The alpha composition mode to apply

    Returns
    Type Description
    PixelBlender<TPixel>

    A PixelBlender<TPixel>.

    | Improve this Doc View Source

    GetPixelTypeInfo()

    Gets the pixel type info for the given TPixel.

    Declaration
    public virtual PixelTypeInfo GetPixelTypeInfo()
    Returns
    Type Description
    PixelTypeInfo

    The PixelTypeInfo.

    | Improve this Doc View Source

    To<TDestinationPixel>(Configuration, ReadOnlySpan<TPixel>, Span<TDestinationPixel>)

    Bulk operation that copies the sourcePixels to destinationPixels in TDestinationPixel format.

    Declaration
    public virtual void To<TDestinationPixel>(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<TDestinationPixel> destinationPixels)
        where TDestinationPixel : struct, IPixel<TDestinationPixel>
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations.

    ReadOnlySpan<TPixel> sourcePixels

    The ReadOnlySpan<T> to the source pixels.

    Span<TDestinationPixel> destinationPixels

    The Span<T> to the destination pixels.

    Type Parameters
    Name Description
    TDestinationPixel

    The destination pixel type.

    | Improve this Doc View Source

    ToArgb32(Configuration, ReadOnlySpan<TPixel>, Span<Argb32>)

    Converts all pixels of the 'sourcePixels` span to a span of Argb32-s.

    Declaration
    public virtual void ToArgb32(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Argb32> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<Argb32> destinationPixels

    The destination span of Argb32 data.

    | Improve this Doc View Source

    ToArgb32Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToArgb32(Configuration, ReadOnlySpan<TPixel>, Span<Argb32>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with Argb32 layout.

    Declaration
    public void ToArgb32Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToBgr24(Configuration, ReadOnlySpan<TPixel>, Span<Bgr24>)

    Converts all pixels of the 'sourcePixels` span to a span of Bgr24-s.

    Declaration
    public virtual void ToBgr24(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Bgr24> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<Bgr24> destinationPixels

    The destination span of Bgr24 data.

    | Improve this Doc View Source

    ToBgr24Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToBgr24(Configuration, ReadOnlySpan<TPixel>, Span<Bgr24>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with Bgr24 layout.

    Declaration
    public void ToBgr24Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToBgra32(Configuration, ReadOnlySpan<TPixel>, Span<Bgra32>)

    Converts all pixels of the 'sourcePixels` span to a span of Bgra32-s.

    Declaration
    public virtual void ToBgra32(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Bgra32> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<Bgra32> destinationPixels

    The destination span of Bgra32 data.

    | Improve this Doc View Source

    ToBgra32Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToBgra32(Configuration, ReadOnlySpan<TPixel>, Span<Bgra32>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with Bgra32 layout.

    Declaration
    public void ToBgra32Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToBgra5551(Configuration, ReadOnlySpan<TPixel>, Span<Bgra5551>)

    Converts all pixels of the 'sourcePixels` span to a span of Bgra5551-s.

    Declaration
    public virtual void ToBgra5551(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Bgra5551> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<Bgra5551> destinationPixels

    The destination span of Bgra5551 data.

    | Improve this Doc View Source

    ToBgra5551Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToBgra5551(Configuration, ReadOnlySpan<TPixel>, Span<Bgra5551>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with Bgra5551 layout.

    Declaration
    public void ToBgra5551Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToL16(Configuration, ReadOnlySpan<TPixel>, Span<L16>)

    Converts all pixels of the 'sourcePixels` span to a span of L16-s.

    Declaration
    public virtual void ToL16(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<L16> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<L16> destinationPixels

    The destination span of L16 data.

    | Improve this Doc View Source

    ToL16Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToL16(Configuration, ReadOnlySpan<TPixel>, Span<L16>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with L16 layout.

    Declaration
    public void ToL16Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToL8(Configuration, ReadOnlySpan<TPixel>, Span<L8>)

    Converts all pixels of the 'sourcePixels` span to a span of L8-s.

    Declaration
    public virtual void ToL8(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<L8> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<L8> destinationPixels

    The destination span of L8 data.

    | Improve this Doc View Source

    ToL8Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToL8(Configuration, ReadOnlySpan<TPixel>, Span<L8>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with L8 layout.

    Declaration
    public void ToL8Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToLa16(Configuration, ReadOnlySpan<TPixel>, Span<La16>)

    Converts all pixels of the 'sourcePixels` span to a span of La16-s.

    Declaration
    public virtual void ToLa16(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<La16> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<La16> destinationPixels

    The destination span of La16 data.

    | Improve this Doc View Source

    ToLa16Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToLa16(Configuration, ReadOnlySpan<TPixel>, Span<La16>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with La16 layout.

    Declaration
    public void ToLa16Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToLa32(Configuration, ReadOnlySpan<TPixel>, Span<La32>)

    Converts all pixels of the 'sourcePixels` span to a span of La32-s.

    Declaration
    public virtual void ToLa32(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<La32> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<La32> destinationPixels

    The destination span of La32 data.

    | Improve this Doc View Source

    ToLa32Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToLa32(Configuration, ReadOnlySpan<TPixel>, Span<La32>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with La32 layout.

    Declaration
    public void ToLa32Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToRgb24(Configuration, ReadOnlySpan<TPixel>, Span<Rgb24>)

    Converts all pixels of the 'sourcePixels` span to a span of Rgb24-s.

    Declaration
    public virtual void ToRgb24(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Rgb24> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<Rgb24> destinationPixels

    The destination span of Rgb24 data.

    | Improve this Doc View Source

    ToRgb24Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToRgb24(Configuration, ReadOnlySpan<TPixel>, Span<Rgb24>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with Rgb24 layout.

    Declaration
    public void ToRgb24Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToRgb48(Configuration, ReadOnlySpan<TPixel>, Span<Rgb48>)

    Converts all pixels of the 'sourcePixels` span to a span of Rgb48-s.

    Declaration
    public virtual void ToRgb48(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Rgb48> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<Rgb48> destinationPixels

    The destination span of Rgb48 data.

    | Improve this Doc View Source

    ToRgb48Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToRgb48(Configuration, ReadOnlySpan<TPixel>, Span<Rgb48>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with Rgb48 layout.

    Declaration
    public void ToRgb48Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToRgba32(Configuration, ReadOnlySpan<TPixel>, Span<Rgba32>)

    Converts all pixels of the 'sourcePixels` span to a span of Rgba32-s.

    Declaration
    public virtual void ToRgba32(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Rgba32> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<Rgba32> destinationPixels

    The destination span of Rgba32 data.

    | Improve this Doc View Source

    ToRgba32Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToRgba32(Configuration, ReadOnlySpan<TPixel>, Span<Rgba32>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with Rgba32 layout.

    Declaration
    public void ToRgba32Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToRgba64(Configuration, ReadOnlySpan<TPixel>, Span<Rgba64>)

    Converts all pixels of the 'sourcePixels` span to a span of Rgba64-s.

    Declaration
    public virtual void ToRgba64(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Rgba64> destinationPixels)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The span of source pixels

    Span<Rgba64> destinationPixels

    The destination span of Rgba64 data.

    | Improve this Doc View Source

    ToRgba64Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)

    A helper for ToRgba64(Configuration, ReadOnlySpan<TPixel>, Span<Rgba64>) that expects a byte span as destination. The layout of the data in 'destBytes' must be compatible with Rgba64 layout.

    Declaration
    public void ToRgba64Bytes(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<byte> destBytes, int count)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source pixels.

    Span<Byte> destBytes

    The Span<T> to the destination bytes.

    Int32 count

    The number of pixels to convert.

    | Improve this Doc View Source

    ToVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>)

    Bulk version of ToVector4() converting 'sourceColors.Length' pixels into 'destinationVectors'.

    Declaration
    public void ToVector4(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Vector4> destinationVectors)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source colors.

    Span<Vector4> destinationVectors

    The Span<T> to the destination vectors.

    | Improve this Doc View Source

    ToVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>, PixelConversionModifiers)

    Bulk version of ToVector4() converting 'sourceColors.Length' pixels into 'destinationVectors'.

    Declaration
    public virtual void ToVector4(Configuration configuration, ReadOnlySpan<TPixel> sourcePixels, Span<Vector4> destinationVectors, PixelConversionModifiers modifiers)
    Parameters
    Type Name Description
    Configuration configuration

    A Configuration to configure internal operations

    ReadOnlySpan<TPixel> sourcePixels

    The Span<T> to the source colors.

    Span<Vector4> destinationVectors

    The Span<T> to the destination vectors.

    PixelConversionModifiers modifiers

    The PixelConversionModifiers to apply during the conversion

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Instance
    • Methods
      • From<TSourcePixel>(Configuration, ReadOnlySpan<TSourcePixel>, Span<TPixel>)
      • FromArgb32(Configuration, ReadOnlySpan<Argb32>, Span<TPixel>)
      • FromArgb32Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromBgr24(Configuration, ReadOnlySpan<Bgr24>, Span<TPixel>)
      • FromBgr24Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromBgra32(Configuration, ReadOnlySpan<Bgra32>, Span<TPixel>)
      • FromBgra32Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromBgra5551(Configuration, ReadOnlySpan<Bgra5551>, Span<TPixel>)
      • FromBgra5551Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromL16(Configuration, ReadOnlySpan<L16>, Span<TPixel>)
      • FromL16Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromL8(Configuration, ReadOnlySpan<L8>, Span<TPixel>)
      • FromL8Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromLa16(Configuration, ReadOnlySpan<La16>, Span<TPixel>)
      • FromLa16Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromLa32(Configuration, ReadOnlySpan<La32>, Span<TPixel>)
      • FromLa32Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromRgb24(Configuration, ReadOnlySpan<Rgb24>, Span<TPixel>)
      • FromRgb24Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromRgb48(Configuration, ReadOnlySpan<Rgb48>, Span<TPixel>)
      • FromRgb48Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromRgba32(Configuration, ReadOnlySpan<Rgba32>, Span<TPixel>)
      • FromRgba32Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromRgba64(Configuration, ReadOnlySpan<Rgba64>, Span<TPixel>)
      • FromRgba64Bytes(Configuration, ReadOnlySpan<Byte>, Span<TPixel>, Int32)
      • FromVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>)
      • FromVector4Destructive(Configuration, Span<Vector4>, Span<TPixel>, PixelConversionModifiers)
      • GetPixelBlender(GraphicsOptions)
      • GetPixelBlender(PixelColorBlendingMode, PixelAlphaCompositionMode)
      • GetPixelTypeInfo()
      • To<TDestinationPixel>(Configuration, ReadOnlySpan<TPixel>, Span<TDestinationPixel>)
      • ToArgb32(Configuration, ReadOnlySpan<TPixel>, Span<Argb32>)
      • ToArgb32Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToBgr24(Configuration, ReadOnlySpan<TPixel>, Span<Bgr24>)
      • ToBgr24Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToBgra32(Configuration, ReadOnlySpan<TPixel>, Span<Bgra32>)
      • ToBgra32Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToBgra5551(Configuration, ReadOnlySpan<TPixel>, Span<Bgra5551>)
      • ToBgra5551Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToL16(Configuration, ReadOnlySpan<TPixel>, Span<L16>)
      • ToL16Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToL8(Configuration, ReadOnlySpan<TPixel>, Span<L8>)
      • ToL8Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToLa16(Configuration, ReadOnlySpan<TPixel>, Span<La16>)
      • ToLa16Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToLa32(Configuration, ReadOnlySpan<TPixel>, Span<La32>)
      • ToLa32Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToRgb24(Configuration, ReadOnlySpan<TPixel>, Span<Rgb24>)
      • ToRgb24Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToRgb48(Configuration, ReadOnlySpan<TPixel>, Span<Rgb48>)
      • ToRgb48Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToRgba32(Configuration, ReadOnlySpan<TPixel>, Span<Rgba32>)
      • ToRgba32Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToRgba64(Configuration, ReadOnlySpan<TPixel>, Span<Rgba64>)
      • ToRgba64Bytes(Configuration, ReadOnlySpan<TPixel>, Span<Byte>, Int32)
      • ToVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>)
      • ToVector4(Configuration, ReadOnlySpan<TPixel>, Span<Vector4>, PixelConversionModifiers)
    Back to top Generated by DocFX