This function creates a new server side pixmap of the specified width and height. The pixmap is initialized with a monochrome bitmap corresponding to the specified bit array. If specified byte and/or bit reversal will be performed on each short word within the bit array.
![]() | A pixmap is basically an offscreen window. You can draw to a pixmap just as you would an on screen window. The return value of this function is a bit misleading, in that it should probably be a GR_DRAW_ID rather than a window ID. From a drawing point of view nano-X does not make much of a difference between window IDs and drawable IDs. |
![]() | When finished with the pixmap, the application must free the resources allocated to the pixmap by calling the function GrDestroyWindow() with the pixmap ID as the ID of the window to destroy. |
Type | Name | Description |
---|---|---|
GR_SIZE | width | The width in pixels of the pixmap. |
GR_SIZE | height | The height in pixels of the pixmap. |
GR_COLOR | foreground | The color to use as the pixmap foreground. |
GR_COLOR | background | The color to use as the pixmap background. |
void* | bits | Pinter to the bit array. All set bits in this array are drawn in the specfied foreground color. All clear bits in this array are drawn in the specified background color. |
int | flags | This fields hold flags from the table below. |