Pixbuf.compositeColor

void compositeColor(gdkpixbuf.pixbuf.Pixbuf dest, int destX, int destY, int destWidth, int destHeight, double offsetX, double offsetY, double scaleX, double scaleY, gdkpixbuf.types.InterpType interpType, int overallAlpha, int checkX, int checkY, int checkSize, uint color1, uint color2)

Creates a transformation of the source image src by scaling by scale_x and scale_y then translating by offset_x and offset_y, then alpha blends 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.

If the source image has no alpha channel, and overall_alpha is 255, a fast path is used which omits the alpha blending and just performs the scaling.

See [gdkpixbuf.pixbuf.Pixbuf.compositeColorSimple] for a simpler variant of this function suitable for many tasks.

Parameters

destthe #GdkPixbuf into which to render the results
destXthe left coordinate for region to render
destYthe top coordinate for region to render
destWidththe width of the region to render
destHeightthe height of the region to render
offsetXthe offset in the X direction (currently rounded to an integer)
offsetYthe offset in the Y direction (currently rounded to an integer)
scaleXthe scale factor in the X direction
scaleYthe scale factor in the Y direction
interpTypethe interpolation type for the transformation.
overallAlphaoverall alpha for source image (0..255)
checkXthe X offset for the checkboard (origin of checkboard is at -check_x, -check_y)
checkYthe Y offset for the checkboard
checkSizethe size of checks in the checkboard (must be a power of two)
color1the color of check at upper left
color2the color of the other check