Drawable.drawImage

Warning gdk_draw_image has been deprecated since version 2.22 and should not be used in newly-written code. Do not use GdkImage anymore, instead use Cairo image surfaces. Draws a GdkImage onto a drawable. The depth of the GdkImage must match the depth of the GdkDrawable.

class Drawable
void
drawImage
(,,
int xsrc
,
int ysrc
,
int xdest
,
int ydest
,
int width
,
int height
)

Parameters

gc GC

a GdkGC.

image ImageGdk

the GdkImage to draw.

xsrc int

the left edge of the source rectangle within image.

ysrc int

the top of the source rectangle within image.

xdest int

the x coordinate of the destination within drawable.

ydest int

the y coordinate of the destination within drawable.

width int

the width of the area to be copied, or -1 to make the area extend to the right edge of image.

height int

the height of the area to be copied, or -1 to make the area extend to the bottom edge of image.

Meta