You are asking for very different things. You have one request for a Perl (you don't need TK) application that can open MS Word, extract an image, and then make that image available in an editable application.
For the image extraction, you might take this example: http://www.adp-gmbh.ch/perl/word.html. I found that by doing a Google search for win32 ole MS-Word Perl (recreated here).
You also haven't specified why you would want to develop an image editor through Perl/TK. It is certainly possible. For good lessons, please consult THE book on Perl/TK: Mastering Perl/TK.
Note that the Monastery is not the place to ask generic "please send me the code" questions and get very helpful responses
| [reply] |
I agree with Sinistral about the 'two different questions' issue. It seems from the language of the post that you may already know how to extract the image. I would also look at the Image::Magick module, as this not only has many features for modifying images, it can output in a multitude of formats as well
| [reply] |
Perl Tk is not the best for image editing. For a nice editor that runs on win32, try Gimp for win32. When you install it, it will ask you if you want it to be the default veiwer/editor for all file types, say yes. Back to Tk/Gtk2 etc, it is often convenient to use these for simple things like adding images to other images (overlays of logos, etc), or annotating text on images, that you can position easily with mouse drags. See Gtk2-annotate-draggable texts on image for example. Gimp takes awhile to start up, and the menus are very complex, so for simple tasks like annotating/positioning text, your own custom tool is nice. If you want a fast way to setup for Gtk2 on win32, install Gimp (above), and put in Camelbox: A build of Gtk2-Perl for Windows to get Per 5.10 and Gtk2 all in one easy step.
| [reply] |