Drawable.copyToImage

Warning gdk_drawable_copy_to_image has been deprecated since version 2.22 and should not be used in newly-written code. Use drawable as the source and draw to a Cairo image surface if you want to download contents to the client. Copies a portion of drawable into the client side image structure image. If image is NULL, creates a new image of size width x height and copies into that. See gdk_drawable_get_image() for further details. Since 2.4

class Drawable
copyToImage
(,
int srcX
,
int srcY
,
int destX
,
int destY
,
int width
,
int height
)

Parameters

image ImageGdk

a GdkDrawable, or NULL if a new image should be created. [allow-none]

srcX int

x coordinate on drawable

srcY int

y coordinate on drawable

destX int

x coordinate within image. Must be 0 if image is NULL

destY int

y coordinate within image. Must be 0 if image is NULL

width int

width of region to get

height int

height or region to get

Return Value

Type: ImageGdk

image, or a new a GdkImage containing the contents of drawable

Meta