Gdk.Drawable.DrawPixbuf Method
Renders a rectangular portion of a Gdk.Pixbuf to a Gdk.Drawable

Syntax

public void DrawPixbuf (GC gc, Pixbuf pixbuf, int src_x, int src_y, int dest_x, int dest_y, int width, int height, RgbDither dither, int x_dither, int y_dither)

Parameters

gc
A Gdk.GC used for clipping.
pixbuf
The Gdk.Pixbuf to render
src_x
Source X coordinate within pixbuf.
src_y
Source Y coordinates within pixbuf.
dest_x
Destination X coordinate within drawable.
dest_y
Destination Y coordinate within drawable.
width
Width of region to render, in pixels, or -1 to use pixbuf width.
height
Height of region to render, in pixels, or -1 to use pixbuf height.
dither
Dithering mode for GdkRGB.
x_dither
X offset for dither.
y_dither
Y offset for dither.

Remarks

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 on the Drawable.Colormap property.

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.

Requirements

Namespace: Gdk
Assembly: gdk-sharp (in gdk-sharp.dll)