This is syncimg.c in view mode; [Download] [Up]
/* * SyncImage() - initializes the red, green, and blue intensities of each * pixel as defined by the colormap index. * * RCS: * $Revision: 2.3 $ * $Date: 1996/05/03 02:21:34 $ * * Security: * Unclassified * * Description: * Adapted from ImageMagick * * Input Parameters: * type identifier description * * text * * Output Parameters: * type identifier description * * text * * Return Values: * value description * * Side Effects: * text * * Limitations and Comments: * text * * Development History: * when who why * 3/28/94 mm first cut */ #include "combine.h" #include "defines.h" void SyncImage(image) Image *image; { register int i; register Runlength *p; register unsigned short index; p=image->pixels; for (i=0; i < image->packets; i++) { index=p->index; p->red=image->colormap[index].red; p->green=image->colormap[index].green; p->blue=image->colormap[index].blue; p++; } }
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.