IMPORT command root or window with cursor

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?".
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

As a long time user of X windows (from X10!) I can tell you that the cursor is a special image. Sometimes it is drawn into the frame buffer of the displayed image, and thus able to be picked up by "import". More commonly it is a special hardward overlay and not visible outside the hardware.

In other words it depends on exactly how the X windows Display is implemented both in hardward and software.

No gurantees on being able to grab it.

One posiblility is to start a virtual X server, like VNC or RFB (actually the same thing). This generates a 'fake' X windows display that is sent to viewing clients on other machines (windows and linux). It may be that snapshots of winodws from this X server will have cursors visible.

A second posibility is to use a Virtual Machine and grab its display.

None of this is an IM problem however.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

There is a -pause option to pause between snapshots and -snaps tells how many snapshots to take.
Post Reply