Show / Hide Table of Contents

Class ProcessingExtensions

Adds extensions that allow the processing of images to the Image<TPixel> type.

Inheritance
System.Object
ProcessingExtensions
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class ProcessingExtensions : object

Methods

| Improve this Doc View Source

ApplyProcessors(IImageProcessingContext, IImageProcessor[])

Applies the given IImageProcessor<TPixel> collection against the context

Declaration
public static IImageProcessingContext ApplyProcessors(this IImageProcessingContext source, params IImageProcessor[] operations)
Parameters
Type Name Description
IImageProcessingContext source

The image processing context.

IImageProcessor[] operations

The operations to perform on the source.

Returns
Type Description
IImageProcessingContext

The IImageProcessor<TPixel> to allow chaining of operations.

| Improve this Doc View Source

Clone(Image, Action<IImageProcessingContext>)

Creates a deep clone of the current image. The clone is then mutated by the given operation.

Declaration
public static Image Clone(this Image source, Action<IImageProcessingContext> operation)
Parameters
Type Name Description
Image source

The image to clone.

Action<IImageProcessingContext> operation

The operation to perform on the clone.

Returns
Type Description
Image

The new Image.

| Improve this Doc View Source

Clone<TPixel>(Image<TPixel>, Action<IImageProcessingContext>)

Creates a deep clone of the current image. The clone is then mutated by the given operation.

Declaration
public static Image<TPixel> Clone<TPixel>(this Image<TPixel> source, Action<IImageProcessingContext> operation)
    where TPixel : struct, IPixel<TPixel>
Parameters
Type Name Description
Image<TPixel> source

The image to clone.

Action<IImageProcessingContext> operation

The operation to perform on the clone.

Returns
Type Description
Image<TPixel>

The new Image<TPixel>

Type Parameters
Name Description
TPixel

The pixel format.

| Improve this Doc View Source

Clone<TPixel>(Image<TPixel>, IImageProcessor[])

Creates a deep clone of the current image. The clone is then mutated by the given operations.

Declaration
public static Image<TPixel> Clone<TPixel>(this Image<TPixel> source, params IImageProcessor[] operations)
    where TPixel : struct, IPixel<TPixel>
Parameters
Type Name Description
Image<TPixel> source

The image to clone.

IImageProcessor[] operations

The operations to perform on the clone.

Returns
Type Description
Image<TPixel>

The new Image<TPixel>

Type Parameters
Name Description
TPixel

The pixel format.

| Improve this Doc View Source

Mutate(Image, Action<IImageProcessingContext>)

Mutates the source image by applying the image operation to it.

Declaration
public static void Mutate(this Image source, Action<IImageProcessingContext> operation)
Parameters
Type Name Description
Image source

The image to mutate.

Action<IImageProcessingContext> operation

The operation to perform on the source.

| Improve this Doc View Source

Mutate<TPixel>(Image<TPixel>, Action<IImageProcessingContext>)

Mutates the source image by applying the image operation to it.

Declaration
public static void Mutate<TPixel>(this Image<TPixel> source, Action<IImageProcessingContext> operation)
    where TPixel : struct, IPixel<TPixel>
Parameters
Type Name Description
Image<TPixel> source

The image to mutate.

Action<IImageProcessingContext> operation

The operation to perform on the source.

Type Parameters
Name Description
TPixel

The pixel format.

| Improve this Doc View Source

Mutate<TPixel>(Image<TPixel>, IImageProcessor[])

Mutates the source image by applying the operations to it.

Declaration
public static void Mutate<TPixel>(this Image<TPixel> source, params IImageProcessor[] operations)
    where TPixel : struct, IPixel<TPixel>
Parameters
Type Name Description
Image<TPixel> source

The image to mutate.

IImageProcessor[] operations

The operations to perform on the source.

Type Parameters
Name Description
TPixel

The pixel format.

  • Improve this Doc
  • View Source
Back to top Copyright © Six Labors
Generated by DocFX