Gdk.Pixbuf.CompositeColor Method
Scale and Compose a Pixbuf with control over the checks

Syntax

public void CompositeColor (Pixbuf dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, InterpType interp_type, int overall_alpha, int check_x, int check_y, int check_size, uint color1, uint color2)

Parameters

dest
The destination Pixbuf to render to.
dest_x
The left coordinate for region to render
dest_y
The top coordinate for region to render
dest_width
The width of the region to render
dest_height
The height of the region to render
offset_x
The offset in the X direction (currently rounded to an integer)
offset_y
The offset in the Y direction (currently rounded to an integer)
scale_x
The scale factor in the X direction
scale_y
The scale factor in the Y direction
interp_type
The interpolation type for the transformation.
overall_alpha
Overall alpha for source image (0..255)
check_x
The X offset for the checkboard (origin of checkboard is at -check_x, -check_y)
check_y
The Y offset for the checkboard
check_size
The size of checks in the checkboard (must be a power of two)
color1
The color of check at upper left
color2
The color of the other check

Remarks

Creates a transformation of the Pixbuf by scaling by scale_x and scale_y then translating by offset_x and offset_y, then composites the rectangle (dest_x ,dest_y, dest_width, dest_height) of the resulting image with a checkboard of the colors color1 and color2 and renders it onto the destination image.

The color1 and color2 encode the color in 32-bit RGB format.

Requirements

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