Grx.Context.prototype.bit_blt_1bpp
function bit_blt_1bpp(x: Number(gint), y: Number(gint), src: Grx.Context, x1: Number(gint), y1: Number(gint), x2: Number(gint), y2: Number(gint), fg: Grx.Color, bg: Grx.Color): void { // Gjs wrapper for grx_context_bit_blt_1bpp() }
Copies an area bounded by x1, y2, x2, y2 in the source context to the destination context at the location specified by dx, dy using the specified operation.
The source must be a 1 bit per pixel bitmap. The foreground color is used for bits = 1 and the background color is used for bits = 0.
Also see Grx.bit_blt_1bpp for operating on the current context.
- x
the destination X coordinate
- y
the destination Y coordinate
- src
the source context or null to use the current context
- x1
the source bounding rectangle left coordinate
- y1
the source bounding rectangle top coordinate
- x2
the source bounding rectangle right coordinate
- y2
the source bounding rectangle bottom coordinate
- fg
the foreground color
- bg
the background color