Grx.Pixmap.new_from_bits
function new_from_bits(bits: Number(guint8), w: Number(gint), h: Number(gint), fg: Grx.Color, bg: Grx.Color): Grx.Pixmap { // Gjs wrapper for grx_pixmap_new_from_bits() }
Builds a pixmap fill pattern from bitmap data. It is useful if the width of the bitmap pattern is not eight as such bitmap patterns can not be used to build a GrBitmap structure.
- bits
the bitmap data
- w
the width of the bitmap data
- h
the height of the bitmap data
- fg
the forground color
- bg
the background color
- Returns
a new Grx.Pixmap or null if there was an error.