-
+ Returns a client-side representing the server-side .
+ A , X coordinate of the upper left corner of the region to get as a drawable
+ A , Y coordinate of the upper left corner of the region to get as a drawable.
+ A , width of the rectangle
+ A , height of the rectangle.
+ A containing the contents of this Drawable object.
+
+
A stores client-side image data (pixels). In contrast,
and are server-side
objects. This method obtains the pixels from a
server-side drawable as a client-side .
-
-
+
+
The format of a depends on
the of the current display, which
makes manipulating extremely difficult;
@@ -254,39 +270,29 @@
display-dependent format. Of course, there's a convenience vs.
speed tradeoff here, so you'll want to think about what makes
sense for your application.
-
-
-
-
-
-
+
+
, ,
, and define
the region of the drawable to obtain as an image.
-
-
+
+
You would usually copy image data to the client side if you intend
to examine the values of individual pixels, for example to darken
an image or add a red tint. It would be prohibitively slow to
make a round-trip request to the windowing system for each pixel,
so instead you get all of them at once, modify them, then copy
them all back at once.
-
-
+
+
If the X server or other windowing system backend is on the local
machine, this function may use shared memory to avoid copying
the image data.
-
-
- If the source drawable is a #GdkWindow and partially offscreen
+
+ If the source drawable is a #GdkWindow and partially offscreen
or obscured, then the obscured portions of the returned image
will contain undefined data.
-
+