Path: utzoo!attcan!uunet!hodge!jdm From: jdm@hodge.UUCP (jdm) Newsgroups: comp.graphics Subject: Questions about the Sun raster image file format Message-ID: <21639@hodge.UUCP> Date: 24 Aug 89 04:01:06 GMT Organization: Hodge Computer Research Corporation Lines: 33 I'm doing some conversion work involving Sun raster image files and I've not been about to find good answers to the following questions: 1) If the ras_maptype is RMT_RAW how are the RGB values stored in the colormap? Are they RGBRGBRGBRGBRGBRGB (by pixel) as opposed to RRRRRRRGGGGGGGGGBBBBBBB (by plane) when ras_maptype is RMT_EQUAL_RGB? 2) If ras_maptype is RMT_NONE is there any colormap data in the file? The man page for rasterfile says they colormap is "empty" when ras_maptype is RMT_NONE. Does this mean all the values in the colormap are 0 or the colormap data just isn't in the file? 3) How is the actual image data formatted when there is and isn't a colormap? With a colormap is each pixel just a byte that contains an index into the colormap? Without a colormap is the RGB data stored a pixel at a time or a plane at a time? (i.e. RGBRGBRGBRGBRGBRGBRGB versus RRRRRRRGGGGGGGBBBBBBB). -- "I'm an anthropologist, not a computer systems architect, damit!" jdm@hodge.cts.com [uunet zardoz crash]!hodge!jdm James D. Murray, Ethnounixologist TEL: (714) 998-7750 Ext. 129 Hodge Computer Research Corporation FAX: (714) 921-8038 1588 North Batavia Street Orange, California 92667 USA