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.
[Image]
http://i1333.photobucket.com/albums/w623/rangothonlinerangoth/photo_zps3b2313f9.jpg
[/Image]
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:
.BlackThreshold()
.BitDepth(Channels.All, 1)
.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:
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?
-Mark
I have a JPG file(which I hope uploading to photobucket did not change.
[Image]
http://i1333.photobucket.com/albums/w623/rangothonlinerangoth/photo_zps3b2313f9.jpg
[/Image]
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:
.BlackThreshold()
.BitDepth(Channels.All, 1)
.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;
this.imageData[page].Quantize();
But it turns it gray, not B&WI 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?
-Mark