RGtk2 (version 2.20.31)

gdkDrawableCopyToImage: gdkDrawableCopyToImage

Description

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 gdkDrawableGetImage for further details.

Usage

gdkDrawableCopyToImage(object, image = NULL, src.x, src.y, dest.x, dest.y, width, height)

Arguments

object
image
a GdkDrawable, or NULL if a new image should be created. [ allow-none ]
src.x
x coordinate on drawable
src.y
y coordinate on drawable
dest.x
x coordinate within image. Must be 0 if image is NULL
dest.y
y coordinate within image. Must be 0 if image is NULL
width
width of region to get
height
height or region to get

Value

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

Details

Since 2.4