mirror of
https://github.com/javl/image2cpp.git
synced 2026-07-28 04:05:35 +00:00
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:
+5
-2
@@ -748,10 +748,13 @@
|
||||
break;
|
||||
}
|
||||
// Make sure the image is black and white
|
||||
/*blackAndWhite(canvas, ctx);
|
||||
if(settings.conversionFunction == ConversionFunctions.horizontal1bit
|
||||
|| settings.conversionFunction == ConversionFunctions.vertical1bit) {
|
||||
blackAndWhite(canvas, ctx);
|
||||
if(settings["invertColors"]){
|
||||
invert(canvas, ctx);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user