Pixbuf.renderToDrawableAlpha

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 gdk_draw_pixbuf() instead. 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. On older X servers, rendering pixbufs with an alpha channel involves round trips to the X server, and may be somewhat slow.

class Pixbuf
void
renderToDrawableAlpha

Parameters

drawable Drawable

Destination drawable.

srcX int

Source X coordinate within pixbuf.

srcY int

Source Y coordinates within pixbuf.

destX int

Destination X coordinate within drawable.

destY int

Destination Y coordinate within drawable.

width int

Width of region to render, in pixels, or -1 to use pixbuf width.

height int

Height of region to render, in pixels, or -1 to use pixbuf height.

alphaMode GdkPixbufAlphaMode

Ignored. Present for backwards compatibility.

alphaThreshold int

Ignored. Present for backwards compatibility

dither GdkRgbDither

Dithering mode for GdkRGB.

xDither int

X offset for dither.

yDither int

Y offset for dither.

Meta