Interface IDither
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Dithering
- Assembly
- SixLabors.ImageSharp.dll
Defines the contract for types that apply dithering to images.
public interface IDither
Methods
ApplyPaletteDither<TPaletteDitherImageProcessor, TPixel>(in TPaletteDitherImageProcessor, ImageFrame<TPixel>, Rectangle)
Transforms the image frame applying a dither matrix. This method should be treated as destructive, altering the input pixels.
void ApplyPaletteDither<TPaletteDitherImageProcessor, TPixel>(in TPaletteDitherImageProcessor processor, ImageFrame<TPixel> source, Rectangle bounds) where TPaletteDitherImageProcessor : struct, IPaletteDitherImageProcessor<TPixel> where TPixel : unmanaged, IPixel<TPixel>
Parameters
processorTPaletteDitherImageProcessorThe palette dithering processor.
sourceImageFrame<TPixel>The source image.
boundsRectangleThe region of interest bounds.
Type Parameters
TPaletteDitherImageProcessorThe type of palette dithering processor.
TPixelThe pixel format.
ApplyQuantizationDither<TFrameQuantizer, TPixel>(ref TFrameQuantizer, ImageFrame<TPixel>, IndexedImageFrame<TPixel>, Rectangle)
Transforms the quantized image frame applying a dither matrix. This method should be treated as destructive, altering the input pixels.
void ApplyQuantizationDither<TFrameQuantizer, TPixel>(ref TFrameQuantizer quantizer, ImageFrame<TPixel> source, IndexedImageFrame<TPixel> destination, Rectangle bounds) where TFrameQuantizer : struct, IQuantizer<TPixel> where TPixel : unmanaged, IPixel<TPixel>
Parameters
quantizerTFrameQuantizerThe frame quantizer.
sourceImageFrame<TPixel>The source image.
destinationIndexedImageFrame<TPixel>The destination quantized frame.
boundsRectangleThe region of interest bounds.
Type Parameters
TFrameQuantizerThe type of frame quantizer.
TPixelThe pixel format.