Fixed the bug where the chrono would not reset if an effect was applied twice on the same image

This commit is contained in:
2022-09-14 19:59:27 +02:00
parent 99bf493b71
commit d90b9d40ef
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -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<double>();
Bitmap[] result = new Bitmap[] { useGetSetPixel(inputBmp), useByteArray(inputBmp), usePointers(inputBmp)};
return result;
}
+6
View File
@@ -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<double>();
Bitmap[] result = new Bitmap[] { medianFilter(inputBmp) };
return result;
}