From 6f85348c9dc2bed5f95aabdddff607897b1d340e Mon Sep 17 00:00:00 2001 From: RinlovesYou Date: Mon, 1 Mar 2021 02:55:05 +0100 Subject: [PATCH] Dithering Pog --- EncodeAndSign/Encoder/ImageEncoder.cs | 28 +++++++++++++-------------- EncodeAndSign/Program.cs | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/EncodeAndSign/Encoder/ImageEncoder.cs b/EncodeAndSign/Encoder/ImageEncoder.cs index 9a9a3a6..88a36b3 100644 --- a/EncodeAndSign/Encoder/ImageEncoder.cs +++ b/EncodeAndSign/Encoder/ImageEncoder.cs @@ -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: diff --git a/EncodeAndSign/Program.cs b/EncodeAndSign/Program.cs index de685a1..06c0570 100644 --- a/EncodeAndSign/Program.cs +++ b/EncodeAndSign/Program.cs @@ -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