Skip to content

Commit 6f85348

Browse files
committed
Dithering Pog
1 parent 295f1c1 commit 6f85348

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

EncodeAndSign/Encoder/ImageEncoder.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,46 +19,46 @@ public void DoRinDithering(string[] filenames, int type)
1919
IDither DitheringType = null;
2020
switch (type)
2121
{
22-
case 0:
22+
case 1:
2323
DitheringType = KnownDitherings.Bayer8x8;
2424
break;
25-
case 1:
25+
case 2:
2626
DitheringType = KnownDitherings.Bayer4x4;
2727
break;
28-
case 2:
28+
case 3:
2929
DitheringType = KnownDitherings.Bayer2x2;
3030
break;
31-
case 3:
31+
case 4:
3232
DitheringType = KnownDitherings.FloydSteinberg;
3333
break;
34-
case 4:
34+
case 5:
3535
DitheringType = KnownDitherings.Atkinson;
3636
break;
37-
case 5:
37+
case 6:
3838
DitheringType = KnownDitherings.Burks;
3939
break;
40-
case 6:
40+
case 7:
4141
DitheringType = KnownDitherings.JarvisJudiceNinke;
4242
break;
43-
case 7:
43+
case 8:
4444
DitheringType = KnownDitherings.Sierra3;
4545
break;
46-
case 8:
46+
case 9:
4747
DitheringType = KnownDitherings.StevensonArce;
4848
break;
49-
case 9:
49+
case 10:
5050
DitheringType = KnownDitherings.Sierra2;
5151
break;
52-
case 10:
52+
case 11:
5353
DitheringType = KnownDitherings.Sierra3;
5454
break;
55-
case 11:
55+
case 12:
5656
DitheringType = KnownDitherings.SierraLite;
5757
break;
58-
case 12:
58+
case 13:
5959
DitheringType = KnownDitherings.Stucki;
6060
break;
61-
case 13:
61+
case 14:
6262
DitheringType = KnownDitherings.Ordered3x3;
6363
break;
6464
default:

EncodeAndSign/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private static void CreateAndSignFlipnote()
224224
bitmaps = null;
225225
child.Tick(2, "Dithering Mode: None.");
226226
break;
227-
case 14:
227+
case 15:
228228
child.Tick(1, "Dithering Mode: imagemagick bilevel...");
229229
bitmaps = null;
230230
#region mogrify

0 commit comments

Comments
 (0)