Query: getcmap
OS: plan9
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETCMAP(9.2) GETCMAP(9.2)NAMEgetcmap - read a color map from a fileSYNOPSIS#include <libg.h> #include <fb.h> int getcmap(char *name, uchar *map)DESCRIPTIONGetcmap retrieves the named colormap and stores it in map. Usually name is the name of a colormap file (see cmap(9.6)) or a picfile with a CMAP= attribute. If the file is not found, it is sought in /lib/fb/cmap. If the file cannot be found, and its name has the form gammanumber, a colormap is fabricated with all three channels of its nth entry set to 255x(n/255)1/number. If the name is just gamma, number=2.3 is assumed. There is no putcmap, because write (in read(2)) can do the job.SOURCE/sys/src/libfb/getcmap.cSEE ALSOcmap(9.6), picfile(9.6) rgbpix(2) GETCMAP(9.2)
Related Man Pages |
---|
cmap(5) - debian |
showimage(7) - plan9 |
9v(9) - plan9 |
pcp(9) - plan9 |
cmap(5) - bsd |
Similar Topics in the Unix Linux Community |
---|
PHP Write Man Pages to MySQL DB |
Denial Of Service Attack Update |