Class PolaroidProcessor
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Filters
- Assembly
- SixLabors.ImageSharp.dll
Converts the colors of the image recreating an old Polaroid effect.
public sealed class PolaroidProcessor : FilterProcessor, IImageProcessor
- Inheritance
-
PolaroidProcessor
- Implements
- Inherited Members
Constructors
PolaroidProcessor(GraphicsOptions)
Initializes a new instance of the PolaroidProcessor class.
public PolaroidProcessor(GraphicsOptions graphicsOptions)
Parameters
graphicsOptionsGraphicsOptionsGraphics options to use within the processor.
Properties
GraphicsOptions
Gets the options effecting blending and composition
public GraphicsOptions GraphicsOptions { get; }
Property Value
Methods
CreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
public override IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
configurationConfigurationThe configuration which allows altering default behaviour or extending the library.
sourceImage<TPixel>The source image. Cannot be null.
sourceRectangleRectangleThe Rectangle structure that specifies the portion of the image object to draw.
Returns
- IImageProcessor<TPixel>
Type Parameters
TPixelThe pixel type.