new_from_bits


Description:

public static Pixmap new_from_bits (uint8* bits, int w, int h, Color fg, Color bg)

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.

Parameters:

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 Pixmap or null if there was an error.