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

    Show / Hide Table of Contents
    • SixLabors.ImageSharp
      • ByteOrder
      • 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
      • PixelAccessor<TPixel>
      • PixelAccessorAction<TPixel>
      • PixelAccessorAction<TPixel1, TPixel2, TPixel3>
      • PixelAccessorAction<TPixel1, TPixel2>
      • 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.Compression.Zlib
      • DeflateCompressionLevel
    • SixLabors.ImageSharp.Diagnostics
      • MemoryDiagnostics
      • UndisposedAllocationDelegate
    • 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
      • JpegColorType
      • JpegConfigurationModule
      • JpegDecoder
      • JpegEncoder
      • JpegFormat
      • JpegImageFormatDetector
      • JpegMetadata
    • SixLabors.ImageSharp.Formats.Pbm
      • PbmColorType
      • PbmComponentType
      • PbmConfigurationModule
      • PbmDecoder
      • PbmEncoder
      • PbmEncoding
      • PbmFormat
      • PbmImageFormatDetector
      • PbmMetadata
    • SixLabors.ImageSharp.Formats.Png
      • PngBitDepth
      • PngChunkFilter
      • PngColorType
      • 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.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
      • TiffNewSubfileType
      • TiffPhotometricInterpretation
      • TiffPlanarConfiguration
      • TiffPredictor
      • TiffSampleFormat
      • TiffSubfileType
    • SixLabors.ImageSharp.Formats.Webp
      • WebpBitsPerPixel
      • WebpConfigurationModule
      • WebpDecoder
      • WebpEncoder
      • WebpEncodingMethod
      • WebpFileFormatType
      • WebpFormat
      • WebpImageFormatDetector
      • WebpMetadata
      • WebpTransparentColorMode
    • SixLabors.ImageSharp.Memory
      • AllocationOptions
      • Buffer2D<T>
      • Buffer2DExtensions
      • Buffer2DRegion<T>
      • IMemoryGroup<T>
      • InvalidMemoryOperationException
      • MemoryAllocator
      • MemoryAllocatorExtensions
      • MemoryAllocatorOptions
      • RowInterval
      • SimpleGcMemoryAllocator
    • SixLabors.ImageSharp.Metadata
      • FrameDecodingMode
      • ImageFrameMetadata
      • ImageMetadata
      • PixelResolutionUnit
    • 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
      • 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

    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, CancellationToken)
    Image.LoadAsync<TPixel>(String, IImageDecoder, CancellationToken)
    Image.LoadAsync(Configuration, String, IImageDecoder, CancellationToken)
    Image.LoadAsync<TPixel>(Configuration, String, IImageDecoder, CancellationToken)
    Image.LoadAsync<TPixel>(String, CancellationToken)
    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, CancellationToken)
    Image.DetectFormatAsync(Configuration, Stream, CancellationToken)
    Image.Identify(Stream)
    Image.IdentifyAsync(Stream, CancellationToken)
    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, CancellationToken)
    Image.Load(Stream)
    Image.LoadAsync(Stream, CancellationToken)
    Image.Load(Stream, IImageDecoder)
    Image.LoadAsync(Stream, IImageDecoder, CancellationToken)
    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, CancellationToken)
    Image.Load<TPixel>(Stream, IImageFormat)
    Image.LoadWithFormatAsync<TPixel>(Stream, CancellationToken)
    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, IMemoryOwner<Byte>, Int32, Int32, ImageMetadata)
    Image.WrapMemory<TPixel>(Configuration, IMemoryOwner<Byte>, Int32, Int32)
    Image.WrapMemory<TPixel>(IMemoryOwner<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

    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.

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

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

    The Boolean indicating the success.

    | 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

    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.

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

    | Improve this Doc 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 : struct, IPixel<TPixel2> where TPixel3 : struct, 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.

    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    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.SaveAsPbm(Image, String)
    ImageExtensions.SaveAsPbmAsync(Image, String)
    ImageExtensions.SaveAsPbmAsync(Image, String, CancellationToken)
    ImageExtensions.SaveAsPbm(Image, String, PbmEncoder)
    ImageExtensions.SaveAsPbmAsync(Image, String, PbmEncoder, CancellationToken)
    ImageExtensions.SaveAsPbm(Image, Stream)
    ImageExtensions.SaveAsPbmAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsPbm(Image, Stream, PbmEncoder)
    ImageExtensions.SaveAsPbmAsync(Image, Stream, PbmEncoder, 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.SaveAsWebp(Image, String)
    ImageExtensions.SaveAsWebpAsync(Image, String)
    ImageExtensions.SaveAsWebpAsync(Image, String, CancellationToken)
    ImageExtensions.SaveAsWebp(Image, String, WebpEncoder)
    ImageExtensions.SaveAsWebpAsync(Image, String, WebpEncoder, CancellationToken)
    ImageExtensions.SaveAsWebp(Image, Stream)
    ImageExtensions.SaveAsWebpAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsWebp(Image, Stream, WebpEncoder)
    ImageExtensions.SaveAsWebpAsync(Image, Stream, WebpEncoder, CancellationToken)
    ImageExtensions.SaveAsTiff(Image, String)
    ImageExtensions.SaveAsTiffAsync(Image, String)
    ImageExtensions.SaveAsTiffAsync(Image, String, CancellationToken)
    ImageExtensions.SaveAsTiff(Image, String, TiffEncoder)
    ImageExtensions.SaveAsTiffAsync(Image, String, TiffEncoder, CancellationToken)
    ImageExtensions.SaveAsTiff(Image, Stream)
    ImageExtensions.SaveAsTiffAsync(Image, Stream, CancellationToken)
    ImageExtensions.SaveAsTiff(Image, Stream, TiffEncoder)
    ImageExtensions.SaveAsTiffAsync(Image, Stream, TiffEncoder, 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.DangerousGetPixelRowMemory<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[])
    ProcessingExtensions.CalculateIntegralImage<TPixel>(Image<TPixel>)
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • Image(Configuration, Int32, Int32)
      • Image(Configuration, Int32, Int32, TPixel)
      • Image(Int32, Int32)
      • Image(Int32, Int32, TPixel)
    • Properties
      • Frames
      • Item[Int32, Int32]
      • NonGenericFrameCollection
    • Methods
      • Clone()
      • Clone(Configuration)
      • CloneAs<TPixel2>(Configuration)
      • CopyPixelDataTo(Span<TPixel>)
      • CopyPixelDataTo(Span<Byte>)
      • DangerousTryGetSinglePixelMemory(out Memory<TPixel>)
      • Dispose(Boolean)
      • ProcessPixelRows(PixelAccessorAction<TPixel>)
      • ProcessPixelRows<TPixel2>(Image<TPixel2>, PixelAccessorAction<TPixel, TPixel2>)
      • ProcessPixelRows<TPixel2, TPixel3>(Image<TPixel2>, Image<TPixel3>, PixelAccessorAction<TPixel, TPixel2, TPixel3>)
      • ToString()
    • Implements
    • Extension Methods
    Back to top Generated by DocFX