Mar 4, 2014 at 9:05 PM
Edited Mar 4, 2014 at 9:10 PM
First off, very cool library, thank you for creating it. Also, my questions are probably more related to my lack of image understanding than the library but anyway.
I have a JPG file(which I hope uploading to photobucket did not change.
and I am trying to convert it to a pure B&W 1 bit image, using either dithering, thresholding, etc.
When I convert it to a TIFF and use GROUP 4 compression I do seem to be able to get the image to turn B&W and I've been able to successfully convert it to TIFF, open and view it in other application etc.
But I cannot seem to save it as a JPG(original format) that is 1bit B&W.
I've tried all sorts of crazy combinations of the following mutators/function calls:
.Depth = 1
I've also tried a .Strip() before those calls based on some other responses I saw about certain profiles overriding things(not sure if I fully understand that part).
The only thing that seems to work is this:
this.imageData[page].QuantizeColorSpace = ColorSpace.GRAY;
this.imageData[page].QuantizeDither = true;
But it turns it gray, not B&W
I hope this doesn't come across at nit-picky, just curious on how to achieve what I am looking for if it is even possible.
Side question: is there any documentation on what the actual function calls do? Like an MSDN/API doc?