Skip to content

Commit

Permalink
Dithering Pog
Browse files Browse the repository at this point in the history
  • Loading branch information
RinLovesYou committed Mar 1, 2021
1 parent 295f1c1 commit 6f85348
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions EncodeAndSign/Encoder/ImageEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,46 +19,46 @@ public void DoRinDithering(string[] filenames, int type)
IDither DitheringType = null;
switch (type)
{
case 0:
case 1:
DitheringType = KnownDitherings.Bayer8x8;
break;
case 1:
case 2:
DitheringType = KnownDitherings.Bayer4x4;
break;
case 2:
case 3:
DitheringType = KnownDitherings.Bayer2x2;
break;
case 3:
case 4:
DitheringType = KnownDitherings.FloydSteinberg;
break;
case 4:
case 5:
DitheringType = KnownDitherings.Atkinson;
break;
case 5:
case 6:
DitheringType = KnownDitherings.Burks;
break;
case 6:
case 7:
DitheringType = KnownDitherings.JarvisJudiceNinke;
break;
case 7:
case 8:
DitheringType = KnownDitherings.Sierra3;
break;
case 8:
case 9:
DitheringType = KnownDitherings.StevensonArce;
break;
case 9:
case 10:
DitheringType = KnownDitherings.Sierra2;
break;
case 10:
case 11:
DitheringType = KnownDitherings.Sierra3;
break;
case 11:
case 12:
DitheringType = KnownDitherings.SierraLite;
break;
case 12:
case 13:
DitheringType = KnownDitherings.Stucki;
break;
case 13:
case 14:
DitheringType = KnownDitherings.Ordered3x3;
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion EncodeAndSign/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private static void CreateAndSignFlipnote()
bitmaps = null;
child.Tick(2, "Dithering Mode: None.");
break;
case 14:
case 15:
child.Tick(1, "Dithering Mode: imagemagick bilevel...");
bitmaps = null;
#region mogrify
Expand Down

0 comments on commit 6f85348

Please sign in to comment.