• Articles
  • API Documentation
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 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
    IImage
    IImageInfo
    IDisposable
    Inherited Members
    Image.PixelType
    Image.Width
    Image.Height
    Image.Metadata
    Image.Dispose()
    Image.Save(Stream, IImageEncoder)
    Image.SaveAsync(Stream, IImageEncoder, CancellationToken)
    Image.CloneAs<TPixel2>()
    Image.UpdateSize(Size)
    Image.DetectFormat(Byte[])
    Image.DetectFormat(Configuration, Byte[])
    Image.Identify(Byte[])
    Image.Identify(Byte[], IImageFormat)
    Image.Identify(Configuration, Byte[], IImageFormat)
    Image.Load(Byte[])
    Image.Load<TPixel>(Byte[])
    Image.Load<TPixel>(Byte[], IImageFormat)
    Image.Load<TPixel>(Configuration, Byte[])
    Image.Load<TPixel>(Configuration, Byte[], IImageFormat)
    Image.Load<TPixel>(Byte[], IImageDecoder)
    Image.Load<TPixel>(Configuration, Byte[], IImageDecoder)
    Image.DetectFormat(ReadOnlySpan<Byte>)
    Image.DetectFormat(Configuration, ReadOnlySpan<Byte>)
    Image.Load<TPixel>(ReadOnlySpan<Byte>)
    Image.Load<TPixel>(ReadOnlySpan<Byte>, IImageFormat)
    Image.Load<TPixel>(ReadOnlySpan<Byte>, IImageDecoder)
    Image.Load<TPixel>(Configuration, ReadOnlySpan<Byte>)
    Image.Load<TPixel>(Configuration, ReadOnlySpan<Byte>, IImageDecoder)
    Image.Load<TPixel>(Configuration, ReadOnlySpan<Byte>, IImageFormat)
    Image.Load(Byte[], IImageFormat)
    Image.Load(Byte[], IImageDecoder)
    Image.Load(Configuration, Byte[])
    Image.Load(Configuration, Byte[], IImageDecoder)
    Image.Load(Configuration, Byte[], IImageFormat)
    Image.Load(ReadOnlySpan<Byte>)
    Image.Load(ReadOnlySpan<Byte>, IImageDecoder)
    Image.Load(ReadOnlySpan<Byte>, IImageFormat)
    Image.Load(Configuration, ReadOnlySpan<Byte>)
    Image.Load(Configuration, ReadOnlySpan<Byte>, IImageDecoder)
    Image.Load(Configuration, ReadOnlySpan<Byte>, IImageFormat)
    Image.DetectFormat(String)
    Image.DetectFormat(Configuration, String)
    Image.Identify(String)
    Image.Identify(String, IImageFormat)
    Image.Identify(Configuration, String, IImageFormat)
    Image.IdentifyAsync(String, CancellationToken)
    Image.IdentifyAsync(Configuration, String, CancellationToken)
    Image.IdentifyWithFormatAsync(String, CancellationToken)
    Image.IdentifyWithFormatAsync(Configuration, String, CancellationToken)
    Image.Load(String)
    Image.Load(String, IImageFormat)
    Image.Load(Configuration, String)
    Image.LoadAsync(Configuration, String, CancellationToken)
    Image.Load(Configuration, String, IImageDecoder)
    Image.LoadAsync(String, CancellationToken)
    Image.LoadAsync(String, IImageDecoder)
    Image.LoadAsync<TPixel>(String, IImageDecoder)
    Image.LoadAsync(Configuration, String, IImageDecoder, CancellationToken)
    Image.LoadAsync<TPixel>(Configuration, String, IImageDecoder, CancellationToken)
    Image.LoadAsync<TPixel>(String)
    Image.LoadAsync<TPixel>(Configuration, String, CancellationToken)
    Image.Load(String, IImageDecoder)
    Image.Load<TPixel>(String)
    Image.Load<TPixel>(String, IImageFormat)
    Image.Load<TPixel>(Configuration, String)
    Image.Load<TPixel>(Configuration, String, IImageFormat)
    Image.Load(Configuration, String, IImageFormat)
    Image.Load<TPixel>(String, IImageDecoder)
    Image.Load<TPixel>(Configuration, String, IImageDecoder)
    Image.DetectFormat(Stream)
    Image.DetectFormat(Configuration, Stream)
    Image.DetectFormatAsync(Stream)
    Image.DetectFormatAsync(Configuration, Stream)
    Image.Identify(Stream)
    Image.IdentifyAsync(Stream)
    Image.Identify(Stream, IImageFormat)
    Image.Identify(Configuration, Stream)
    Image.IdentifyAsync(Configuration, Stream, CancellationToken)
    Image.Identify(Configuration, Stream, IImageFormat)
    Image.IdentifyWithFormatAsync(Stream, CancellationToken)
    Image.IdentifyWithFormatAsync(Configuration, Stream, CancellationToken)
    Image.Load(Stream, IImageFormat)
    Image.LoadWithFormatAsync(Stream)
    Image.Load(Stream)
    Image.LoadAsync(Stream)
    Image.Load(Stream, IImageDecoder)
    Image.LoadAsync(Stream, IImageDecoder)
    Image.Load(Configuration, Stream, IImageDecoder)
    Image.LoadAsync(Configuration, Stream, IImageDecoder, CancellationToken)
    Image.Load(Configuration, Stream)
    Image.LoadAsync(Configuration, Stream, CancellationToken)
    Image.Load<TPixel>(Stream)
    Image.LoadAsync<TPixel>(Stream)
    Image.Load<TPixel>(Stream, IImageFormat)
    Image.LoadWithFormatAsync<TPixel>(Stream)
    Image.Load<TPixel>(Stream, IImageDecoder)
    Image.LoadAsync<TPixel>(Stream, IImageDecoder, CancellationToken)
    Image.Load<TPixel>(Configuration, Stream, IImageDecoder)
    Image.LoadAsync<TPixel>(Configuration, Stream, IImageDecoder, CancellationToken)
    Image.Load<TPixel>(Configuration, Stream)
    Image.Load<TPixel>(Configuration, Stream, IImageFormat)
    Image.LoadWithFormatAsync(Configuration, Stream, CancellationToken)
    Image.LoadWithFormatAsync<TPixel>(Configuration, Stream, CancellationToken)
    Image.LoadAsync<TPixel>(Configuration, Stream, CancellationToken)
    Image.Load(Configuration, Stream, IImageFormat)
    Image.LoadPixelData<TPixel>(TPixel[], Int32, Int32)
    Image.LoadPixelData<TPixel>(ReadOnlySpan<TPixel>, Int32, Int32)
    Image.LoadPixelData<TPixel>(Byte[], Int32, Int32)
    Image.LoadPixelData<TPixel>(ReadOnlySpan<Byte>, Int32, Int32)
    Image.LoadPixelData<TPixel>(Configuration, Byte[], Int32, Int32)
    Image.LoadPixelData<TPixel>(Configuration, ReadOnlySpan<Byte>, Int32, Int32)
    Image.LoadPixelData<TPixel>(Configuration, TPixel[], Int32, Int32)
    Image.LoadPixelData<TPixel>(Configuration, ReadOnlySpan<TPixel>, Int32, Int32)
    Image.WrapMemory<TPixel>(Configuration, Memory<TPixel>, Int32, Int32, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, Memory<TPixel>, Int32, Int32)
    Image.WrapMemory<TPixel>(Memory<TPixel>, Int32, Int32)
    Image.WrapMemory<TPixel>(Configuration, IMemoryOwner<TPixel>, Int32, Int32, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, IMemoryOwner<TPixel>, Int32, Int32)
    Image.WrapMemory<TPixel>(IMemoryOwner<TPixel>, Int32, Int32)
    Image.WrapMemory<TPixel>(Configuration, Memory<Byte>, Int32, Int32, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, Memory<Byte>, Int32, Int32)
    Image.WrapMemory<TPixel>(Memory<Byte>, Int32, Int32)
    Image.WrapMemory<TPixel>(Configuration, Void*, Int32, Int32, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, Void*, Int32, Int32)
    Image.WrapMemory<TPixel>(Void*, Int32, Int32)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: SixLabors.ImageSharp
    Assembly: SixLabors.ImageSharp.dll
    Syntax
    public sealed class Image<TPixel> : Image, IImage, IImageInfo, IDisposable where TPixel : struct, IPixel<TPixel>
    Type Parameters
    Name Description
    TPixel

    The pixel format.

    Constructors

    | Improve this Doc View Source

    Image(Configuration, Int32, Int32)

    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.

    Int32 width

    The width of the image in pixels.

    Int32 height

    The height of the image in pixels.

    | Improve this Doc View Source

    Image(Configuration, Int32, Int32, 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.

    Int32 width

    The width of the image in pixels.

    Int32 height

    The height of the image in pixels.

    TPixel backgroundColor

    The color to initialize the pixels with.

    | Improve this Doc View Source

    Image(Int32, Int32)

    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
    Int32 width

    The width of the image in pixels.

    Int32 height

    The height of the image in pixels.

    | Improve this Doc View Source

    Image(Int32, Int32, 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
    Int32 width

    The width of the image in pixels.

    Int32 height

    The height of the image in pixels.

    TPixel backgroundColor

    The color to initialize the pixels with.

    Properties

    | Improve this Doc View Source

    Frames

    Gets the collection of image frames.

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

    Item[Int32, Int32]

    Gets or sets the pixel at the specified position.

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

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

    Int32 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.

    | Improve this Doc 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

    | Improve this Doc 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.

    | Improve this Doc 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.

    | Improve this Doc 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 : struct, 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)
    | Improve this Doc View Source

    Dispose(Boolean)

    Disposes the object and frees resources for the Garbage Collector.

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

    Whether to dispose of managed and unmanaged objects.

    Overrides
    Image.Dispose(Boolean)
    | Improve this Doc View Source

    GetPixelRowSpan(Int32)

    Gets the representation of the pixels as a Span<T> of contiguous memory at row rowIndex beginning from the first pixel on that row.

    Declaration
    public Span<TPixel> GetPixelRowSpan(int rowIndex)
    Parameters
    Type Name Description
    Int32 rowIndex

    The row.

    Returns
    Type Description
    Span<TPixel>

    The Span<T>

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    Thrown when row index is out of range.

    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    | Improve this Doc View Source

    TryGetSinglePixelSpan(out Span<TPixel>)

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

    Declaration
    public bool TryGetSinglePixelSpan(out Span<TPixel> span)
    Parameters
    Type Name Description
    Span<TPixel> span

    The Span<T>.

    Returns
    Type Description
    Boolean

    The Boolean.

    Implements

    IImage
    IImageInfo
    System.IDisposable

    Extension Methods

    ImageExtensions.SaveAsBmp(Image, String)
    ImageExtensions.SaveAsBmpAsync(Image, String)
    ImageExtensions.SaveAsBmpAsync(Image, String, CancellationToken)
    ImageExtensions.SaveAsBmp(Image, String, BmpEncoder)
    ImageExtensions.SaveAsBmpAsync(Image, String, BmpEncoder, CancellationToken)
    ImageExtensions.SaveAsBmp(Image, Stream)
    ImageExtensions.SaveAsBmpAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsBmp(Image, Stream, BmpEncoder)
    ImageExtensions.SaveAsBmpAsync(Image, Stream, BmpEncoder, CancellationToken)
    ImageExtensions.SaveAsGif(Image, String)
    ImageExtensions.SaveAsGifAsync(Image, String)
    ImageExtensions.SaveAsGifAsync(Image, String, CancellationToken)
    ImageExtensions.SaveAsGif(Image, String, GifEncoder)
    ImageExtensions.SaveAsGifAsync(Image, String, GifEncoder, CancellationToken)
    ImageExtensions.SaveAsGif(Image, Stream)
    ImageExtensions.SaveAsGifAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsGif(Image, Stream, GifEncoder)
    ImageExtensions.SaveAsGifAsync(Image, Stream, GifEncoder, CancellationToken)
    ImageExtensions.SaveAsJpeg(Image, String)
    ImageExtensions.SaveAsJpegAsync(Image, String)
    ImageExtensions.SaveAsJpegAsync(Image, String, CancellationToken)
    ImageExtensions.SaveAsJpeg(Image, String, JpegEncoder)
    ImageExtensions.SaveAsJpegAsync(Image, String, JpegEncoder, CancellationToken)
    ImageExtensions.SaveAsJpeg(Image, Stream)
    ImageExtensions.SaveAsJpegAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsJpeg(Image, Stream, JpegEncoder)
    ImageExtensions.SaveAsJpegAsync(Image, Stream, JpegEncoder, CancellationToken)
    ImageExtensions.SaveAsPng(Image, String)
    ImageExtensions.SaveAsPngAsync(Image, String)
    ImageExtensions.SaveAsPngAsync(Image, String, CancellationToken)
    ImageExtensions.SaveAsPng(Image, String, PngEncoder)
    ImageExtensions.SaveAsPngAsync(Image, String, PngEncoder, CancellationToken)
    ImageExtensions.SaveAsPng(Image, Stream)
    ImageExtensions.SaveAsPngAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsPng(Image, Stream, PngEncoder)
    ImageExtensions.SaveAsPngAsync(Image, Stream, PngEncoder, CancellationToken)
    ImageExtensions.SaveAsTga(Image, String)
    ImageExtensions.SaveAsTgaAsync(Image, String)
    ImageExtensions.SaveAsTgaAsync(Image, String, CancellationToken)
    ImageExtensions.SaveAsTga(Image, String, TgaEncoder)
    ImageExtensions.SaveAsTgaAsync(Image, String, TgaEncoder, CancellationToken)
    ImageExtensions.SaveAsTga(Image, Stream)
    ImageExtensions.SaveAsTgaAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsTga(Image, Stream, TgaEncoder)
    ImageExtensions.SaveAsTgaAsync(Image, Stream, TgaEncoder, CancellationToken)
    ImageExtensions.Save(Image, String)
    ImageExtensions.SaveAsync(Image, String, CancellationToken)
    ImageExtensions.Save(Image, String, IImageEncoder)
    ImageExtensions.SaveAsync(Image, String, IImageEncoder, CancellationToken)
    ImageExtensions.Save(Image, Stream, IImageFormat)
    ImageExtensions.SaveAsync(Image, Stream, IImageFormat, CancellationToken)
    ImageExtensions.ToBase64String(Image, IImageFormat)
    ImageInfoExtensions.Size(IImageInfo)
    ImageInfoExtensions.Bounds(IImageInfo)
    AdvancedImageExtensions.DetectEncoder(Image, String)
    AdvancedImageExtensions.AcceptVisitor(Image, IImageVisitor)
    AdvancedImageExtensions.AcceptVisitorAsync(Image, IImageVisitorAsync, CancellationToken)
    AdvancedImageExtensions.GetConfiguration(Image)
    AdvancedImageExtensions.GetPixelMemoryGroup<TPixel>(Image<TPixel>)
    AdvancedImageExtensions.GetPixelRowMemory<TPixel>(Image<TPixel>, Int32)
    ProcessingExtensions.Mutate(Image, Action<IImageProcessingContext>)
    ProcessingExtensions.Mutate(Image, Configuration, Action<IImageProcessingContext>)
    ProcessingExtensions.Mutate<TPixel>(Image<TPixel>, Action<IImageProcessingContext>)
    ProcessingExtensions.Mutate<TPixel>(Image<TPixel>, Configuration, Action<IImageProcessingContext>)
    ProcessingExtensions.Mutate<TPixel>(Image<TPixel>, IImageProcessor[])
    ProcessingExtensions.Mutate<TPixel>(Image<TPixel>, Configuration, IImageProcessor[])
    ProcessingExtensions.Clone(Image, Action<IImageProcessingContext>)
    ProcessingExtensions.Clone(Image, Configuration, Action<IImageProcessingContext>)
    ProcessingExtensions.Clone<TPixel>(Image<TPixel>, Action<IImageProcessingContext>)
    ProcessingExtensions.Clone<TPixel>(Image<TPixel>, Configuration, Action<IImageProcessingContext>)
    ProcessingExtensions.Clone<TPixel>(Image<TPixel>, IImageProcessor[])
    ProcessingExtensions.Clone<TPixel>(Image<TPixel>, Configuration, IImageProcessor[])
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX