IM_PUT_CMAP

im_put_cmap - write colormap to KUIM image

Synopsis

void im_put_cmap(Image, Red,Green,Blue)
   IM_TYPE *Image;
   char *Red;
   char *Green;
   char *Blue;

Description

The im_put_cmap routine copies three 256 entry color map arrays into the header of an open KUIM image. This information can subsequently be read using im_get_cmap. The parameters to this routine are:

Image - This is a pointer to a IM_TYPE data structure which was previously initialized using im_open or im_create.

Red - This is an array of 256 red colormap values.

Green - This is an array of 256 green colormap values.

Blue - This is an array of 256 blue colormap values.

Files

Source is in $KUIM/src/libIM

See Also

im_create, im_open, im_read, im_write, im_get_title, im_put_title, im_get_cmap, im_put_cmap, im_alloc1D, im_alloc2D, im_alloc3D, im_free1D, im_free2D, im_free3D.

Author

John M. Gauch
Electrical Engineering and Computer Science
University of Kansas

Diagnostics

Upon occurrence of any error condition, a message is printed and the program exits.