Description Usage Arguments Details Author(s)
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 gdk_drawable_set_colormap.
WARNING: gdk_pixbuf_render_to_drawable_alpha
has been deprecated since version 2.4 and should not be used in newly-written code. This function is obsolete. Use gdkDrawPixbuf
instead.
1 2 3 4 | gdkPixbufRenderToDrawableAlpha(object, drawable, src.x = 0, src.y = 0,
dest.x, dest.y, width = -1, height = -1, alpha.mode = NULL,
alpha.threshold = NULL, dither = "GDK_RGB_DITHER_NORMAL",
x.dither = 0, y.dither = 0)
|
|
A pixbuf. |
|
Destination drawable. |
|
Source X coordinate within pixbuf. |
|
Source Y coordinates within pixbuf. |
|
Destination X coordinate within drawable. |
|
Destination Y coordinate within drawable. |
|
Width of region to render, in pixels, or -1 to use pixbuf width. |
|
Height of region to render, in pixels, or -1 to use pixbuf height. |
|
Ignored. Present for backwards compatibility. |
|
Ignored. Present for backwards compatibility |
|
Dithering mode for GdkRGB. |
|
X offset for dither. |
|
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.
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.