NuGraf provides a sub-library of routines to aid in the development
of color-mapped output drivers. These generic routines perform all of the computations
necessary to quantize and dither the 24-bit renderer output to 8 or fewer bits; this is
necessary for frame buffers or file formats which can only display 256 or
fewer colors. The sub-library handles the generation of the R/G/B dithering matrices,
creates an appropriate 8-bit colormap and provides a generic routine to map the 24-bit
output to an n-bit colormap entry offset.
Ni_Generic_Colormap_Setup()
Setup the general-purpose
8-bit color mapping utility routines.
Ni_Generic_Colormap_Shutdown()
Shut down the
general-purpose 8-bit color mapping utility routines.
Ni_Generic_Map_Color()
Map a 24-bit color to an
8-bit colormap offset (with dithering).
Ni_Notify_Of_OD_Config_Change()
Notify the library of
changes in the output driver configuration.
Ni_Image_Load()
Load a RGB image using one
of the image reading drivers.
Ni_Image_Save()
Save out an RGB image using
one of the image output drivers.