Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!dftsrv!iris613.gsfc.nasa.gov!cahalan From: cahalan@iris613.gsfc.nasa.gov (Bob Cahalan) Newsgroups: comp.sys.next Subject: How do I display a byte image ??? Message-ID: <438@dftsrv.gsfc.nasa.gov> Date: 25 Aug 89 19:08:34 GMT Sender: news@dftsrv.gsfc.nasa.gov Reply-To: cahalan@iris613.gsfc.nasa.gov (Bob Cahalan) Organization: Goddard Space Flight Center Climate and Radiation Branch Lines: 24 Friends in NXland, I have a LANDSAT image of Washington DC, and I'd like to see how it looks on the MegaPixel display. Can anyone help me with code? The image is 1024X1024 8-bit pixels, and the file has no header -- just 1024 bytes for line 1 followed by 1024 bytes for line 2, etc to EOF, altogether 1 Megabyte. I suppose I would only see 2-bit pixels on the MegaP-display, or can I use the other 2 bits as well? Do I need to use the Interface Builder? Once I load the 1Mb into memory, should I use NXImageBitmap(displaypointer,1024,1024,2,1,NX_PLANAR,0,imagepointer) ???????????????????????????????????????????????????????????????????????? If so, how do I determine displaypointer? I unfortunately have to do most of the work remotely, since the machine itself is 4 miles away. Any help would be much appreciated !!! Thanks. Bob Cahalan NASA-GSFC ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Robert F. Cahalan # Laboratory for Atmospheres cahalan@iris613.gsfc.nasa.gov # NASA-Goddard Space Flight Center frrfc@scfvm (bitnet) # Greenbelt, MD 20771