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:
+7
-4
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user