|
|
|
@ -18,10 +18,12 @@ namespace SixLabors.ImageSharp.Dithering |
|
|
|
/// <param name="transformed">The transformed pixel</param>
|
|
|
|
/// <param name="x">The column index.</param>
|
|
|
|
/// <param name="y">The row index.</param>
|
|
|
|
/// <param name="width">The image width.</param>
|
|
|
|
/// <param name="height">The image height.</param>
|
|
|
|
/// <param name="minX">The minimum column value.</param>
|
|
|
|
/// <param name="minY">The minimum row value.</param>
|
|
|
|
/// <param name="maxX">The maximum column value.</param>
|
|
|
|
/// <param name="maxY">The maximum row value.</param>
|
|
|
|
/// <typeparam name="TPixel">The pixel format.</typeparam>
|
|
|
|
void Dither<TPixel>(ImageBase<TPixel> image, TPixel source, TPixel transformed, int x, int y, int width, int height) |
|
|
|
void Dither<TPixel>(ImageBase<TPixel> image, TPixel source, TPixel transformed, int x, int y, int minX, int minY, int maxX, int maxY) |
|
|
|
where TPixel : struct, IPixel<TPixel>; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
@ -32,14 +34,16 @@ namespace SixLabors.ImageSharp.Dithering |
|
|
|
/// <param name="transformed">The transformed pixel</param>
|
|
|
|
/// <param name="x">The column index.</param>
|
|
|
|
/// <param name="y">The row index.</param>
|
|
|
|
/// <param name="width">The image width.</param>
|
|
|
|
/// <param name="height">The image height.</param>
|
|
|
|
/// <param name="minX">The minimum column value.</param>
|
|
|
|
/// <param name="minY">The minimum row value.</param>
|
|
|
|
/// <param name="maxX">The maximum column value.</param>
|
|
|
|
/// <param name="maxY">The maximum row value.</param>
|
|
|
|
/// <param name="replacePixel">
|
|
|
|
/// Whether to replace the pixel at the given coordinates with the transformed value.
|
|
|
|
/// Generally this would be true for standard two-color dithering but when used in conjunction with color quantization this should be false.
|
|
|
|
/// </param>
|
|
|
|
/// <typeparam name="TPixel">The pixel format.</typeparam>
|
|
|
|
void Dither<TPixel>(ImageBase<TPixel> image, TPixel source, TPixel transformed, int x, int y, int width, int height, bool replacePixel) |
|
|
|
void Dither<TPixel>(ImageBase<TPixel> image, TPixel source, TPixel transformed, int x, int y, int minX, int minY, int maxX, int maxY, bool replacePixel) |
|
|
|
where TPixel : struct, IPixel<TPixel>; |
|
|
|
} |
|
|
|
} |
|
|
|
|