Bob wrote:
I got it working with wxPython and I'd be happy to post some example code if there's interest.
I'm definitely interested. PythonMagick seems to support CCITT G4 read *and* write, which is very pleasing indeed. I played with it a bit, but I can't figure out the proper way to get pixel data out of an Image so that I can dump it into a wxBitmap/wxImage.
Thanks for the pointer, to what seems to be the right direction:)
RH
···
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Roger Hyde wrote:
Bob wrote:
I got it working with wxPython and I'd be happy to post some example code if there's interest.
I'm definitely interested. PythonMagick seems to support CCITT G4 read *and* write, which is very pleasing indeed. I played with it a bit, but I can't figure out the proper way to get pixel data out of an Image so that I can dump it into a wxBitmap/wxImage.
Okay, I've attached three files which you'll find helpful. As a simple but complete program, MagickSimple1.py should do what you need. Load an image and then run the menu Process->Test1. This thresholds, displays, and writes the result to a file. Real simple.
The other two files might be helpful if you plan to do more with library.
BTW, I use the PythonMagick-0.5-Q16.python22.win32.exe installer. No guarantees about any of the others.
Hope it helps,
Bob
ImageConvert.py (3.79 KB)
MagickSimple1.py (3.07 KB)
mProcess.py (17.8 KB)