diff --git a/AgraV2/EffectGrayScale.cs b/AgraV2/EffectGrayScale.cs index 58135c8..1be925c 100644 --- a/AgraV2/EffectGrayScale.cs +++ b/AgraV2/EffectGrayScale.cs @@ -23,6 +23,9 @@ namespace AgraV2 if (inputBmp == null) return null; + //This is important for when the user wants to re apply an effet + ProcessingDuration = new List(); + Bitmap[] result = new Bitmap[] { useGetSetPixel(inputBmp), useByteArray(inputBmp), usePointers(inputBmp)}; return result; } diff --git a/AgraV2/EffectMedianFilter.cs b/AgraV2/EffectMedianFilter.cs index bc060f0..9f301f3 100644 --- a/AgraV2/EffectMedianFilter.cs +++ b/AgraV2/EffectMedianFilter.cs @@ -46,6 +46,12 @@ namespace AgraV2 } public override Bitmap[] apply(Bitmap inputBmp) { + if (inputBmp == null) + return null; + + //This is important for when the user wants to re apply an effet + ProcessingDuration = new List(); + Bitmap[] result = new Bitmap[] { medianFilter(inputBmp) }; return result; }