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
| Edit this page 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 current image processing context. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |
Pixelate(IImageProcessingContext, int)
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 current image processing context. |
| int | size | The size of the pixels. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |
Pixelate(IImageProcessingContext, int, 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 current image processing context. |
| int | 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 |