• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp
      • ByteOrder
      • Color
      • ColorMatrix
      • Configuration
      • DenseMatrix<T>
      • GeometryUtilities
      • GraphicOptionsDefaultsExtensions
      • GraphicsOptions
      • IDeepCloneable
      • IDeepCloneable<T>
      • Image
      • ImageExtensions
      • ImageFormatException
      • ImageFrame
      • ImageFrameCollection
      • ImageFrameCollectionExtensions
      • ImageFrameCollection<TPixel>
      • ImageFrame<TPixel>
      • ImageInfo
      • ImageProcessingException
      • Image<TPixel>
      • IndexedImageFrame<TPixel>
      • InvalidImageContentException
      • Matrix3x2Extensions
      • MetadataExtensions
      • Number
      • PixelAccessorAction<TPixel>
      • PixelAccessorAction<TPixel1, TPixel2>
      • PixelAccessorAction<TPixel1, TPixel2, TPixel3>
      • PixelAccessor<TPixel>
      • Point
      • PointF
      • Rational
      • ReadOrigin
      • Rectangle
      • RectangleF
      • SignedRational
      • Size
      • SizeF
      • UnknownImageFormatException
    • SixLabors.ImageSharp.Advanced
      • AdvancedImageExtensions
      • IConfigurationProvider
      • 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
      • LWorkingSpace
      • LmsAdaptationMatrix
      • Rec2020WorkingSpace
      • Rec709WorkingSpace
      • RgbPrimariesChromaticityCoordinates
      • RgbWorkingSpace
      • SRgbWorkingSpace
      • VonKriesChromaticAdaptation
    • SixLabors.ImageSharp.Compression.Zlib
      • DeflateCompressionLevel
    • SixLabors.ImageSharp.Diagnostics
      • MemoryDiagnostics
      • UndisposedAllocationDelegate
    • SixLabors.ImageSharp.Formats
      • DecoderOptions
      • IImageDecoder
      • IImageEncoder
      • IImageFormat
      • IImageFormatConfigurationModule
      • IImageFormatDetector
      • IImageFormat<TFormatMetadata>
      • IImageFormat<TFormatMetadata, TFormatFrameMetadata>
      • ISpecializedDecoderOptions
      • ISpecializedImageDecoder<T>
      • ImageDecoder
      • ImageEncoder
      • ImageFormatManager
      • PixelTypeInfo
      • QuantizingImageEncoder
      • SpecializedImageDecoder<T>
    • SixLabors.ImageSharp.Formats.Bmp
      • BmpBitsPerPixel
      • BmpConfigurationModule
      • BmpDecoder
      • BmpDecoderOptions
      • 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
      • JpegDecoderOptions
      • JpegDecoderResizeMode
      • JpegEncoder
      • JpegEncodingColor
      • JpegFormat
      • JpegImageFormatDetector
      • JpegMetadata
    • SixLabors.ImageSharp.Formats.Jpeg.Components.Encoder
      • HuffmanSpec
    • SixLabors.ImageSharp.Formats.Pbm
      • PbmColorType
      • PbmComponentType
      • PbmConfigurationModule
      • PbmDecoder
      • PbmEncoder
      • PbmEncoding
      • PbmFormat
      • PbmImageFormatDetector
      • PbmMetadata
    • SixLabors.ImageSharp.Formats.Png
      • PngBitDepth
      • PngBlendMethod
      • PngChunkFilter
      • PngColorType
      • PngConfigurationModule
      • PngCrcChunkHandling
      • PngDecoder
      • PngDecoderOptions
      • PngDisposalMethod
      • PngEncoder
      • PngFilterMethod
      • PngFormat
      • PngFrameMetadata
      • PngImageFormatDetector
      • PngInterlaceMode
      • PngMetadata
      • PngTransparentColorMode
    • SixLabors.ImageSharp.Formats.Png.Chunks
      • PngTextData
    • SixLabors.ImageSharp.Formats.Qoi
      • QoiChannels
      • QoiColorSpace
      • QoiConfigurationModule
      • QoiEncoder
      • QoiFormat
      • QoiImageFormatDetector
      • QoiMetadata
    • SixLabors.ImageSharp.Formats.Tga
      • TgaBitsPerPixel
      • TgaCompression
      • TgaConfigurationModule
      • TgaDecoder
      • TgaEncoder
      • TgaFormat
      • TgaImageFormatDetector
      • TgaImageType
      • TgaImageTypeExtensions
      • TgaMetadata
    • SixLabors.ImageSharp.Formats.Tiff
      • TiffBitsPerPixel
      • TiffBitsPerSample
      • TiffConfigurationModule
      • TiffDecoder
      • TiffEncoder
      • TiffFormat
      • TiffFormatType
      • TiffFrameMetadata
      • TiffImageFormatDetector
      • TiffMetadata
    • SixLabors.ImageSharp.Formats.Tiff.Compression
      • FaxCompressionOptions
    • SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
      • LzwString
    • SixLabors.ImageSharp.Formats.Tiff.Constants
      • TiffCompression
      • TiffInkSet
      • TiffNewSubfileType
      • TiffPhotometricInterpretation
      • TiffPlanarConfiguration
      • TiffPredictor
      • TiffSampleFormat
      • TiffSubfileType
    • SixLabors.ImageSharp.Formats.Webp
      • BackgroundColorHandling
      • WebpBitsPerPixel
      • WebpBlendMethod
      • WebpConfigurationModule
      • WebpDecoder
      • WebpDecoderOptions
      • WebpDisposalMethod
      • WebpEncoder
      • WebpEncodingMethod
      • WebpFileFormatType
      • WebpFormat
      • WebpFrameMetadata
      • WebpImageFormatDetector
      • WebpMetadata
      • WebpTransparentColorMode
    • SixLabors.ImageSharp.Memory
      • AllocationOptions
      • Buffer2DExtensions
      • Buffer2DRegion<T>
      • Buffer2D<T>
      • IMemoryGroup<T>
      • InvalidMemoryOperationException
      • MemoryAllocator
      • MemoryAllocatorExtensions
      • MemoryAllocatorOptions
      • RowInterval
      • SimpleGcMemoryAllocator
    • SixLabors.ImageSharp.Metadata
      • ImageFrameMetadata
      • ImageMetadata
      • PixelResolutionUnit
    • SixLabors.ImageSharp.Metadata.Profiles.Cicp
      • CicpColorPrimaries
      • CicpMatrixCoefficients
      • CicpProfile
      • CicpTransferCharacteristics
    • SixLabors.ImageSharp.Metadata.Profiles.Exif
      • EncodedString
      • EncodedString.CharacterCode
      • ExifDataType
      • ExifOrientationMode
      • 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.Metadata.Profiles.Xmp
      • XmpProfile
    • SixLabors.ImageSharp.PixelFormats
      • A8
      • Abgr32
      • 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
      • MedianBlurExtensions
      • OilPaintExtensions
      • OpacityExtensions
      • PadExtensions
      • PixelRowDelegateExtensions
      • PixelRowOperation
      • PixelRowOperation<T>
      • PixelateExtensions
      • PolaroidExtensions
      • ProcessingExtensions
      • ProjectiveTransformBuilder
      • QuantizeExtensions
      • ResizeExtensions
      • ResizeMode
      • ResizeOptions
      • RotateExtensions
      • RotateFlipExtensions
      • RotateMode
      • SaturateExtensions
      • SepiaExtensions
      • SkewExtensions
      • SwizzleExtensions
      • TaperCorner
      • TaperSide
      • TransformExtensions
      • TransformSpace
      • VignetteExtensions
    • 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
      • BorderWrappingMode
      • BoxBlurProcessor
      • EdgeDetector2DKernel
      • EdgeDetector2DProcessor
      • EdgeDetectorCompassKernel
      • EdgeDetectorCompassProcessor
      • EdgeDetectorKernel
      • EdgeDetectorProcessor
      • GaussianBlurProcessor
      • GaussianSharpenProcessor
      • MedianBlurProcessor
    • 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
      • AutoLevelProcessor
      • GlobalHistogramEqualizationProcessor
      • HistogramEqualizationMethod
      • HistogramEqualizationOptions
      • HistogramEqualizationProcessor
    • SixLabors.ImageSharp.Processing.Processors.Overlays
      • BackgroundColorProcessor
      • GlowProcessor
      • VignetteProcessor
    • SixLabors.ImageSharp.Processing.Processors.Quantization
      • ColorMatchingMode
      • 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 Image<TPixel>

    Encapsulates an image, which consists of the pixel data for a graphics image and its attributes. For generic Image<TPixel>-s the pixel type is known at compile time.

    Inheritance
    object
    Image
    Image<TPixel>
    Implements
    IDisposable
    IConfigurationProvider
    Inherited Members
    Image.Configuration
    Image.PixelType
    Image.Width
    Image.Height
    Image.Metadata
    Image.Size
    Image.Bounds
    Image.Dispose()
    Image.Save(Stream, IImageEncoder)
    Image.SaveAsync(Stream, IImageEncoder, CancellationToken)
    Image.CloneAs<TPixel2>()
    Image.DetectFormat(ReadOnlySpan<byte>)
    Image.DetectFormat(DecoderOptions, ReadOnlySpan<byte>)
    Image.Identify(ReadOnlySpan<byte>)
    Image.Identify(DecoderOptions, ReadOnlySpan<byte>)
    Image.Load(ReadOnlySpan<byte>)
    Image.Load(DecoderOptions, ReadOnlySpan<byte>)
    Image.Load<TPixel>(ReadOnlySpan<byte>)
    Image.Load<TPixel>(DecoderOptions, ReadOnlySpan<byte>)
    Image.DetectFormat(string)
    Image.DetectFormat(DecoderOptions, string)
    Image.DetectFormatAsync(string, CancellationToken)
    Image.DetectFormatAsync(DecoderOptions, string, CancellationToken)
    Image.Identify(string)
    Image.Identify(DecoderOptions, string)
    Image.IdentifyAsync(string, CancellationToken)
    Image.IdentifyAsync(DecoderOptions, string, CancellationToken)
    Image.Load(string)
    Image.Load(DecoderOptions, string)
    Image.LoadAsync(string, CancellationToken)
    Image.LoadAsync(DecoderOptions, string, CancellationToken)
    Image.Load<TPixel>(string)
    Image.Load<TPixel>(DecoderOptions, string)
    Image.LoadAsync<TPixel>(string, CancellationToken)
    Image.LoadAsync<TPixel>(DecoderOptions, string, CancellationToken)
    Image.DetectFormat(Stream)
    Image.DetectFormat(DecoderOptions, Stream)
    Image.DetectFormatAsync(Stream, CancellationToken)
    Image.DetectFormatAsync(DecoderOptions, Stream, CancellationToken)
    Image.Identify(Stream)
    Image.Identify(DecoderOptions, Stream)
    Image.IdentifyAsync(Stream, CancellationToken)
    Image.IdentifyAsync(DecoderOptions, Stream, CancellationToken)
    Image.Load(Stream)
    Image.Load(DecoderOptions, Stream)
    Image.LoadAsync(Stream, CancellationToken)
    Image.LoadAsync(DecoderOptions, Stream, CancellationToken)
    Image.Load<TPixel>(Stream)
    Image.Load<TPixel>(DecoderOptions, Stream)
    Image.LoadAsync<TPixel>(Stream, CancellationToken)
    Image.LoadAsync<TPixel>(DecoderOptions, Stream, CancellationToken)
    Image.LoadPixelData<TPixel>(ReadOnlySpan<TPixel>, int, int)
    Image.LoadPixelData<TPixel>(ReadOnlySpan<byte>, int, int)
    Image.LoadPixelData<TPixel>(Configuration, ReadOnlySpan<byte>, int, int)
    Image.LoadPixelData<TPixel>(Configuration, ReadOnlySpan<TPixel>, int, int)
    Image.WrapMemory<TPixel>(Configuration, Memory<TPixel>, int, int, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, Memory<TPixel>, int, int)
    Image.WrapMemory<TPixel>(Memory<TPixel>, int, int)
    Image.WrapMemory<TPixel>(Configuration, IMemoryOwner<TPixel>, int, int, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, IMemoryOwner<TPixel>, int, int)
    Image.WrapMemory<TPixel>(IMemoryOwner<TPixel>, int, int)
    Image.WrapMemory<TPixel>(Configuration, Memory<byte>, int, int, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, Memory<byte>, int, int)
    Image.WrapMemory<TPixel>(Memory<byte>, int, int)
    Image.WrapMemory<TPixel>(Configuration, IMemoryOwner<byte>, int, int, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, IMemoryOwner<byte>, int, int)
    Image.WrapMemory<TPixel>(IMemoryOwner<byte>, int, int)
    Image.WrapMemory<TPixel>(Configuration, void*, int, int, int, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, void*, int, int, int)
    Image.WrapMemory<TPixel>(void*, int, int, int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: SixLabors.ImageSharp
    Assembly: SixLabors.ImageSharp.dll
    Syntax
    public sealed class Image<TPixel> : Image, IDisposable, IConfigurationProvider where TPixel : unmanaged, IPixel<TPixel>
    Type Parameters
    Name Description
    TPixel

    The pixel format.

    Constructors

    | Edit this page View Source

    Image(Configuration, int, int)

    Initializes a new instance of the Image<TPixel> class with the height and the width of the image.

    Declaration
    public Image(Configuration configuration, int width, int height)
    Parameters
    Type Name Description
    Configuration configuration

    The configuration providing initialization code which allows extending the library.

    int width

    The width of the image in pixels.

    int height

    The height of the image in pixels.

    | Edit this page View Source

    Image(Configuration, int, int, TPixel)

    Initializes a new instance of the Image<TPixel> class with the height and the width of the image.

    Declaration
    public Image(Configuration configuration, int width, int height, TPixel backgroundColor)
    Parameters
    Type Name Description
    Configuration configuration

    The configuration providing initialization code which allows extending the library.

    int width

    The width of the image in pixels.

    int height

    The height of the image in pixels.

    TPixel backgroundColor

    The color to initialize the pixels with.

    | Edit this page View Source

    Image(int, int)

    Initializes a new instance of the Image<TPixel> class with the height and the width of the image.

    Declaration
    public Image(int width, int height)
    Parameters
    Type Name Description
    int width

    The width of the image in pixels.

    int height

    The height of the image in pixels.

    | Edit this page View Source

    Image(int, int, TPixel)

    Initializes a new instance of the Image<TPixel> class with the height and the width of the image.

    Declaration
    public Image(int width, int height, TPixel backgroundColor)
    Parameters
    Type Name Description
    int width

    The width of the image in pixels.

    int height

    The height of the image in pixels.

    TPixel backgroundColor

    The color to initialize the pixels with.

    Properties

    | Edit this page View Source

    Frames

    Gets the collection of image frames.

    Declaration
    public ImageFrameCollection<TPixel> Frames { get; }
    Property Value
    Type Description
    ImageFrameCollection<TPixel>
    | Edit this page View Source

    this[int, int]

    Gets or sets the pixel at the specified position.

    Declaration
    public TPixel this[int x, int y] { get; set; }
    Parameters
    Type Name Description
    int x

    The x-coordinate of the pixel. Must be greater than or equal to zero and less than the width of the image.

    int y

    The y-coordinate of the pixel. Must be greater than or equal to zero and less than the height of the image.

    Property Value
    Type Description
    TPixel

    The at the specified position.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown when the provided (x,y) coordinates are outside the image boundary.

    | Edit this page View Source

    NonGenericFrameCollection

    Gets the ImageFrameCollection implementing the public Frames property.

    Declaration
    protected override ImageFrameCollection NonGenericFrameCollection { get; }
    Property Value
    Type Description
    ImageFrameCollection
    Overrides
    Image.NonGenericFrameCollection

    Methods

    | Edit this page View Source

    Clone()

    Clones the current image

    Declaration
    public Image<TPixel> Clone()
    Returns
    Type Description
    Image<TPixel>

    Returns a new image with all the same metadata as the original.

    | Edit this page View Source

    Clone(Configuration)

    Clones the current image with the given configuration.

    Declaration
    public Image<TPixel> Clone(Configuration configuration)
    Parameters
    Type Name Description
    Configuration configuration

    The configuration providing initialization code which allows extending the library.

    Returns
    Type Description
    Image<TPixel>

    Returns a new Image<TPixel> with all the same pixel data as the original.

    | Edit this page View Source

    CloneAs<TPixel2>(Configuration)

    Returns a copy of the image in the given pixel format.

    Declaration
    public override Image<TPixel2> CloneAs<TPixel2>(Configuration configuration) where TPixel2 : unmanaged, IPixel<TPixel2>
    Parameters
    Type Name Description
    Configuration configuration

    The configuration providing initialization code which allows extending the library.

    Returns
    Type Description
    Image<TPixel2>

    The Image<TPixel>.

    Type Parameters
    Name Description
    TPixel2

    The pixel format.

    Overrides
    Image.CloneAs<TPixel2>(Configuration)
    | Edit this page View Source

    CopyPixelDataTo(Span<byte>)

    Copy image pixels to destination.

    Declaration
    public void CopyPixelDataTo(Span<byte> destination)
    Parameters
    Type Name Description
    Span<byte> destination

    The Span<T> of byte to copy image pixels to.

    | Edit this page View Source

    CopyPixelDataTo(Span<TPixel>)

    Copy image pixels to destination.

    Declaration
    public void CopyPixelDataTo(Span<TPixel> destination)
    Parameters
    Type Name Description
    Span<TPixel> destination

    The Span<T> to copy image pixels to.

    | Edit this page View Source

    DangerousTryGetSinglePixelMemory(out Memory<TPixel>)

    Gets the representation of the pixels as a Memory<T> in the source image's pixel format stored in row major order, if the backing buffer is contiguous.

    To ensure the memory is contiguous, PreferContiguousImageBuffers should be set to true, preferably on a non-global configuration instance (not Default).

    WARNING: Disposing or leaking the underlying image while still working with the memory's Span<T> might lead to memory corruption.
    Declaration
    public bool DangerousTryGetSinglePixelMemory(out Memory<TPixel> memory)
    Parameters
    Type Name Description
    Memory<TPixel> memory

    The Memory<T> referencing the image buffer.

    Returns
    Type Description
    bool

    The bool indicating the success.

    | Edit this page View Source

    Dispose(bool)

    Disposes the object and frees resources for the Garbage Collector.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Whether to dispose of managed and unmanaged objects.

    Overrides
    Image.Dispose(bool)
    | Edit this page View Source

    ProcessPixelRows(PixelAccessorAction<TPixel>)

    Execute processPixels to process image pixels in a safe and efficient manner.

    Declaration
    public void ProcessPixelRows(PixelAccessorAction<TPixel> processPixels)
    Parameters
    Type Name Description
    PixelAccessorAction<TPixel> processPixels

    The PixelAccessorAction<TPixel> defining the pixel operations.

    | Edit this page View Source

    ProcessPixelRows<TPixel2>(Image<TPixel2>, PixelAccessorAction<TPixel, TPixel2>)

    Execute processPixels to process pixels of multiple images in a safe and efficient manner.

    Declaration
    public void ProcessPixelRows<TPixel2>(Image<TPixel2> image2, PixelAccessorAction<TPixel, TPixel2> processPixels) where TPixel2 : unmanaged, IPixel<TPixel2>
    Parameters
    Type Name Description
    Image<TPixel2> image2

    The second image.

    PixelAccessorAction<TPixel, TPixel2> processPixels

    The PixelAccessorAction<TPixel1, TPixel2> defining the pixel operations.

    Type Parameters
    Name Description
    TPixel2

    The pixel type of the second image.

    | Edit this page View Source

    ProcessPixelRows<TPixel2, TPixel3>(Image<TPixel2>, Image<TPixel3>, PixelAccessorAction<TPixel, TPixel2, TPixel3>)

    Execute processPixels to process pixels of multiple images in a safe and efficient manner.

    Declaration
    public void ProcessPixelRows<TPixel2, TPixel3>(Image<TPixel2> image2, Image<TPixel3> image3, PixelAccessorAction<TPixel, TPixel2, TPixel3> processPixels) where TPixel2 : unmanaged, IPixel<TPixel2> where TPixel3 : unmanaged, IPixel<TPixel3>
    Parameters
    Type Name Description
    Image<TPixel2> image2

    The second image.

    Image<TPixel3> image3

    The third image.

    PixelAccessorAction<TPixel, TPixel2, TPixel3> processPixels

    The PixelAccessorAction<TPixel1, TPixel2, TPixel3> defining the pixel operations.

    Type Parameters
    Name Description
    TPixel2

    The pixel type of the second image.

    TPixel3

    The pixel type of the third image.

    | Edit this page View Source

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()

    Implements

    IDisposable
    IConfigurationProvider

    Extension Methods

    AdvancedImageExtensions.AcceptVisitor(Image, IImageVisitor)
    AdvancedImageExtensions.AcceptVisitorAsync(Image, IImageVisitorAsync, CancellationToken)
    AdvancedImageExtensions.DetectEncoder(Image, string)
    ImageExtensions.Save(Image, Stream, IImageFormat)
    ImageExtensions.Save(Image, string)
    ImageExtensions.Save(Image, string, IImageEncoder)
    ImageExtensions.SaveAsBmp(Image, Stream)
    ImageExtensions.SaveAsBmp(Image, Stream, BmpEncoder)
    ImageExtensions.SaveAsBmp(Image, string)
    ImageExtensions.SaveAsBmp(Image, string, BmpEncoder)
    ImageExtensions.SaveAsBmpAsync(Image, Stream, BmpEncoder, CancellationToken)
    ImageExtensions.SaveAsBmpAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsBmpAsync(Image, string)
    ImageExtensions.SaveAsBmpAsync(Image, string, BmpEncoder, CancellationToken)
    ImageExtensions.SaveAsBmpAsync(Image, string, CancellationToken)
    ImageExtensions.SaveAsGif(Image, Stream)
    ImageExtensions.SaveAsGif(Image, Stream, GifEncoder)
    ImageExtensions.SaveAsGif(Image, string)
    ImageExtensions.SaveAsGif(Image, string, GifEncoder)
    ImageExtensions.SaveAsGifAsync(Image, Stream, GifEncoder, CancellationToken)
    ImageExtensions.SaveAsGifAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsGifAsync(Image, string)
    ImageExtensions.SaveAsGifAsync(Image, string, GifEncoder, CancellationToken)
    ImageExtensions.SaveAsGifAsync(Image, string, CancellationToken)
    ImageExtensions.SaveAsJpeg(Image, Stream)
    ImageExtensions.SaveAsJpeg(Image, Stream, JpegEncoder)
    ImageExtensions.SaveAsJpeg(Image, string)
    ImageExtensions.SaveAsJpeg(Image, string, JpegEncoder)
    ImageExtensions.SaveAsJpegAsync(Image, Stream, JpegEncoder, CancellationToken)
    ImageExtensions.SaveAsJpegAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsJpegAsync(Image, string)
    ImageExtensions.SaveAsJpegAsync(Image, string, JpegEncoder, CancellationToken)
    ImageExtensions.SaveAsJpegAsync(Image, string, CancellationToken)
    ImageExtensions.SaveAsPbm(Image, Stream)
    ImageExtensions.SaveAsPbm(Image, Stream, PbmEncoder)
    ImageExtensions.SaveAsPbm(Image, string)
    ImageExtensions.SaveAsPbm(Image, string, PbmEncoder)
    ImageExtensions.SaveAsPbmAsync(Image, Stream, PbmEncoder, CancellationToken)
    ImageExtensions.SaveAsPbmAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsPbmAsync(Image, string)
    ImageExtensions.SaveAsPbmAsync(Image, string, PbmEncoder, CancellationToken)
    ImageExtensions.SaveAsPbmAsync(Image, string, CancellationToken)
    ImageExtensions.SaveAsPng(Image, Stream)
    ImageExtensions.SaveAsPng(Image, Stream, PngEncoder)
    ImageExtensions.SaveAsPng(Image, string)
    ImageExtensions.SaveAsPng(Image, string, PngEncoder)
    ImageExtensions.SaveAsPngAsync(Image, Stream, PngEncoder, CancellationToken)
    ImageExtensions.SaveAsPngAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsPngAsync(Image, string)
    ImageExtensions.SaveAsPngAsync(Image, string, PngEncoder, CancellationToken)
    ImageExtensions.SaveAsPngAsync(Image, string, CancellationToken)
    ImageExtensions.SaveAsQoi(Image, Stream)
    ImageExtensions.SaveAsQoi(Image, Stream, QoiEncoder)
    ImageExtensions.SaveAsQoi(Image, string)
    ImageExtensions.SaveAsQoi(Image, string, QoiEncoder)
    ImageExtensions.SaveAsQoiAsync(Image, Stream, QoiEncoder, CancellationToken)
    ImageExtensions.SaveAsQoiAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsQoiAsync(Image, string)
    ImageExtensions.SaveAsQoiAsync(Image, string, QoiEncoder, CancellationToken)
    ImageExtensions.SaveAsQoiAsync(Image, string, CancellationToken)
    ImageExtensions.SaveAsTga(Image, Stream)
    ImageExtensions.SaveAsTga(Image, Stream, TgaEncoder)
    ImageExtensions.SaveAsTga(Image, string)
    ImageExtensions.SaveAsTga(Image, string, TgaEncoder)
    ImageExtensions.SaveAsTgaAsync(Image, Stream, TgaEncoder, CancellationToken)
    ImageExtensions.SaveAsTgaAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsTgaAsync(Image, string)
    ImageExtensions.SaveAsTgaAsync(Image, string, TgaEncoder, CancellationToken)
    ImageExtensions.SaveAsTgaAsync(Image, string, CancellationToken)
    ImageExtensions.SaveAsTiff(Image, Stream)
    ImageExtensions.SaveAsTiff(Image, Stream, TiffEncoder)
    ImageExtensions.SaveAsTiff(Image, string)
    ImageExtensions.SaveAsTiff(Image, string, TiffEncoder)
    ImageExtensions.SaveAsTiffAsync(Image, Stream, TiffEncoder, CancellationToken)
    ImageExtensions.SaveAsTiffAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsTiffAsync(Image, string)
    ImageExtensions.SaveAsTiffAsync(Image, string, TiffEncoder, CancellationToken)
    ImageExtensions.SaveAsTiffAsync(Image, string, CancellationToken)
    ImageExtensions.SaveAsWebp(Image, Stream)
    ImageExtensions.SaveAsWebp(Image, Stream, WebpEncoder)
    ImageExtensions.SaveAsWebp(Image, string)
    ImageExtensions.SaveAsWebp(Image, string, WebpEncoder)
    ImageExtensions.SaveAsWebpAsync(Image, Stream, WebpEncoder, CancellationToken)
    ImageExtensions.SaveAsWebpAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsWebpAsync(Image, string)
    ImageExtensions.SaveAsWebpAsync(Image, string, WebpEncoder, CancellationToken)
    ImageExtensions.SaveAsWebpAsync(Image, string, CancellationToken)
    ImageExtensions.SaveAsync(Image, Stream, IImageFormat, CancellationToken)
    ImageExtensions.SaveAsync(Image, string, IImageEncoder, CancellationToken)
    ImageExtensions.SaveAsync(Image, string, CancellationToken)
    ImageExtensions.ToBase64String(Image, IImageFormat)
    ProcessingExtensions.Clone(Image, Configuration, Action<IImageProcessingContext>)
    ProcessingExtensions.Clone(Image, Action<IImageProcessingContext>)
    ProcessingExtensions.Mutate(Image, Configuration, Action<IImageProcessingContext>)
    ProcessingExtensions.Mutate(Image, Action<IImageProcessingContext>)
    AdvancedImageExtensions.DangerousGetPixelRowMemory<TPixel>(Image<TPixel>, int)
    AdvancedImageExtensions.GetPixelMemoryGroup<TPixel>(Image<TPixel>)
    ProcessingExtensions.CalculateIntegralImage<TPixel>(Image<TPixel>)
    ProcessingExtensions.CalculateIntegralImage<TPixel>(Image<TPixel>, Rectangle)
    ProcessingExtensions.Clone<TPixel>(Image<TPixel>, Configuration, params IImageProcessor[])
    ProcessingExtensions.Clone<TPixel>(Image<TPixel>, Configuration, Action<IImageProcessingContext>)
    ProcessingExtensions.Clone<TPixel>(Image<TPixel>, params IImageProcessor[])
    ProcessingExtensions.Clone<TPixel>(Image<TPixel>, Action<IImageProcessingContext>)
    ProcessingExtensions.Mutate<TPixel>(Image<TPixel>, Configuration, params IImageProcessor[])
    ProcessingExtensions.Mutate<TPixel>(Image<TPixel>, Configuration, Action<IImageProcessingContext>)
    ProcessingExtensions.Mutate<TPixel>(Image<TPixel>, params IImageProcessor[])
    ProcessingExtensions.Mutate<TPixel>(Image<TPixel>, Action<IImageProcessingContext>)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX