Browse Prior Art Database

Capturing Part of an X Window

IP.com Disclosure Number: IPCOM000105055D
Original Publication Date: 1993-Jun-01
Included in the Prior Art Database: 2005-Mar-19
Document File: 2 page(s) / 50K

Publishing Venue

IBM

Related People

Kressin, MS: AUTHOR

Abstract

This article describes a method for implementing a program that will allow the user to capture part of a selected X window into the standard XWD format. Existing programs capture the entire contents from the selected window into the standard XWD format. This method is an extension to those existing programs that will allow the user to specify a desired portion of the selected window to capture.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 81% of the total text.

Capturing Part of an X Window

      This article describes a method for implementing a program that
will allow the user to capture part of a selected X window into the
standard XWD format.  Existing programs capture the entire contents
from the selected window into the standard XWD format.  This method
is an extension to those existing programs that will allow the user
to specify a desired portion of the selected window to capture.

      The solution is to provide the user with a method for
specifying the coordinates of the desired window portion and passing
those coordinates to the X-Windows XGetImage call to define the area
that is to be captured into an X-Windows image.  This image is then
converted into the XWD format using the method employed by existing X
window capture programs and the modifications that method that are
needed to allow the user to capture part of the selected X window.
These modifications can be implemented in a separate program that is
used for capturing just window portions or they can be implemented
inside existing capture programs to provide the user with a new
capture program that  has the flexibility to capture all or part of
an X window.  The coordinates needed by this solution can be supplied
in a variety of ways.  For example, the user can supply them as
parameters to the program at invocation time or the program can
request that the coordinates be supplied by the user during program
execution using a number of methods includi...