@@ -53,15 +53,15 @@ class Program
5353 private static DitheringBase < byte > GetDitherer ( DitheringMethod method , DitheringBase < byte > . ColorFunction colorfunc ) =>
5454 method switch
5555 {
56- DitheringMethod . Atkinson => new AtkinsonDitheringRGBByte ( colorfunc ) ,
57- DitheringMethod . Burkes => new BurkesDitheringRGBByte ( colorfunc ) ,
58- DitheringMethod . Fake => new FakeDitheringRGBByte ( colorfunc ) ,
59- DitheringMethod . FloydSteinberg => new FloydSteinbergDitheringRGBByte ( colorfunc ) ,
60- DitheringMethod . JarvisJudiceNinke => new JarvisJudiceNinkeDitheringRGBByte ( colorfunc ) ,
61- DitheringMethod . Sierra => new SierraDitheringRGBByte ( colorfunc ) ,
62- DitheringMethod . SierraLite => new SierraLiteDitheringRGBByte ( colorfunc ) ,
63- DitheringMethod . SierraTwoRow => new SierraTwoRowDitheringRGBByte ( colorfunc ) ,
64- DitheringMethod . Stucki => new StuckiDitheringRGBByte ( colorfunc ) ,
56+ DitheringMethod . Atkinson => new AtkinsonDitheringRGB < byte > ( colorfunc ) ,
57+ DitheringMethod . Burkes => new BurkesDitheringRGB < byte > ( colorfunc ) ,
58+ DitheringMethod . Fake => new FakeDitheringRGB < byte > ( colorfunc ) ,
59+ DitheringMethod . FloydSteinberg => new FloydSteinbergDitheringRGB < byte > ( colorfunc ) ,
60+ DitheringMethod . JarvisJudiceNinke => new JarvisJudiceNinkeDitheringRGB < byte > ( colorfunc ) ,
61+ DitheringMethod . Sierra => new SierraDitheringRGB < byte > ( colorfunc ) ,
62+ DitheringMethod . SierraLite => new SierraLiteDitheringRGB < byte > ( colorfunc ) ,
63+ DitheringMethod . SierraTwoRow => new SierraTwoRowDitheringRGB < byte > ( colorfunc ) ,
64+ DitheringMethod . Stucki => new StuckiDitheringRGB < byte > ( colorfunc ) ,
6565 _ => throw new ArgumentException ( message : "invalid dithering" , paramName : method . ToString ( ) ) ,
6666 } ;
6767
0 commit comments