Reinstated the code to convert canvas contents to black and white and made it conditional based on the selected conversion function

This commit is contained in:
Jochen Derwae
2019-11-19 17:03:11 +01:00
parent eab5bd744f
commit 9654bb6582
+7 -4
View File
@@ -748,10 +748,13 @@
break; break;
} }
// Make sure the image is black and white // Make sure the image is black and white
/*blackAndWhite(canvas, ctx); if(settings.conversionFunction == ConversionFunctions.horizontal1bit
if(settings["invertColors"]){ || settings.conversionFunction == ConversionFunctions.vertical1bit) {
invert(canvas, ctx); blackAndWhite(canvas, ctx);
}*/ if(settings["invertColors"]){
invert(canvas, ctx);
}
}
} }