How does import capture obscured windows?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Dero

How does import capture obscured windows?

Post by Dero »

Hi,

I'm running up-to-date Ubuntu with up-to-date ImageMagick and I have noticed that the import tool is able to capture a window that is partially or completely obscured by another window. In other words - the window I'm capturing needn't to be the topmost window. My question is - how does it do that? :)

xwd tool is unable to produce the same effect and while looking into the import source code, I wasn't able to identify the idea behind this. I would greatly appreciate any help. Does it rely on XComposite extension somehow or is there a way to achieve such result in "bare" X?

Thank you!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How does import capture obscured windows?

Post by anthony »

It depends on the XServer. I am not certain what 'X:' uses but it has to get the data from the x server. I would not rely on it.

Xwd probably requests a specific section of the display root window. so it is always the top most obscure window.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply