- convert x:mywindow window.png
Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
5 posts • Page 1 of 1
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.