Class PixelateExtensions
Defines pixelation effect extensions applicable on an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class PixelateExtensions
Methods
| Improve this Doc View SourcePixelate(IImageProcessingContext)
Pixelates an image with the given pixel size.
Declaration
public static IImageProcessingContext Pixelate(this IImageProcessingContext source)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Pixelate(IImageProcessingContext, Int32)
Pixelates an image with the given pixel size.
Declaration
public static IImageProcessingContext Pixelate(this IImageProcessingContext source, int size)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Int32 | size | The size of the pixels. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Pixelate(IImageProcessingContext, Int32, Rectangle)
Pixelates an image with the given pixel size.
Declaration
public static IImageProcessingContext Pixelate(this IImageProcessingContext source, int size, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Int32 | size | The size of the pixels. |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |