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;
}
// Make sure the image is black and white
/*blackAndWhite(canvas, ctx);
if(settings["invertColors"]){
invert(canvas, ctx);
}*/
if(settings.conversionFunction == ConversionFunctions.horizontal1bit
|| settings.conversionFunction == ConversionFunctions.vertical1bit) {
blackAndWhite(canvas, ctx);
if(settings["invertColors"]){
invert(canvas, ctx);
}
}
}