gdkDrawPixbuf {RGtk2} | R Documentation |
Renders a rectangular portion of a pixbuf to a drawable. The destination
drawable must have a colormap. All windows have a colormap, however, pixmaps
only have colormap by default if they were created with a non-NULL
window
argument. Otherwise a colormap must be set on them with
gdkDrawableSetColormap
.
gdkDrawPixbuf(object, gc = NULL, pixbuf, src.x, src.y, dest.x, dest.y, width = -1, height = -1, dither = "GDK_RGB_DITHER_NORMAL", x.dither = 0, y.dither = 0)
|
[GdkDrawable ] Destination drawable. |
|
[GdkGC ] a GdkGC , used for clipping, or NULL |
|
[GdkPixbuf ] a GdkPixbuf |
|
[integer] Source X coordinate within pixbuf. |
|
[integer] Source Y coordinates within pixbuf. |
|
[integer] Destination X coordinate within drawable. |
|
[integer] Destination Y coordinate within drawable. |
|
[integer] Width of region to render, in pixels, or -1 to use pixbuf width. |
|
[integer] Height of region to render, in pixels, or -1 to use pixbuf height. |
|
[GdkRgbDither ] Dithering mode for GdkRGB . |
|
[integer] X offset for dither. |
|
[integer] Y offset for dither. |
On older X servers, rendering pixbufs with an alpha channel involves round trips to the X server, and may be somewhat slow.
The clip mask of gc
is ignored, but clip rectangles and clip regions work
fine.
Since 2.2
Derived by RGtkGen from GTK+ documentation