Page 1 of 1
Posted: 2006-03-04T11:16:11-07:00
by magick
You can read an image from a X window with X coder. From the command line:
- convert x:mywindow window.png
where mywindow is the window name or hex identified. From Magick++, just do a Read() with x:mywindow as the file name.
Posted: 2006-03-04T13:37:27-07:00
by magick
Hexcode is the window id, for example,
- convert x:0x1a0001f window.png
Posted: 2006-03-04T14:52:53-07:00
by magick
Grabbing X windows can be quite complex because the windows are stored in a tree structure and to ensure you are getting a proper image you must composite the entire tree structure onto an image canvas. However, if you are sure your image can be obtained directly from the screen, you can short cut this process. From the command line, the import program uses the -screen option to quickly grab an image from the root window. Unfortunately, there is no way to set this option from Magick++ at this time. If the option is set, ImageMagick would meet or exceed the imlib times. In the next point release, we'll add an image option settable with the defineValue("x","screen","true") method to grab the image from the screen rather than compositing the entire X11 tree structure.
Posted: 2006-03-06T14:59:14-07:00
by magick
You can expect the next point release yesterday. The patch is in, not sure if the change made it to the ChangeLog just yet. Download/install ImageMagick 6.2.6-3.
Posted: 2006-03-07T11:05:22-07:00
by magick
For now, grab the 6.2.6-3 release version and replace coders/psd.c with the version in 6.2.6-4 Beta. We are aware of the 6.2.4-4 Beta build problem and will of course have it fixed before a public release.