Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cme!durer!rowe From: rowe@cme.nist.gov (Walter Rowe) Newsgroups: comp.windows.x Subject: Viewing 8-bit grayscale images via libXView Message-ID: Date: 4 Dec 90 20:32:51 GMT Sender: news@cme.nist.gov Distribution: comp Organization: National Institute of Standards and Technology Lines: 23 I have flat binary files (not sun rasterfiles) which are images in 8-bit grayscale. I want to be able to view these images in a canvas created via XView. I have the canvas, et al, on the screen but can't seem to get the images to appear in the window. Can someone who has done something like this lend me a hand? I would *greatly* appreciate it. Basically, I want to read in this file of 8-bit grayscale values and slap it into the canvas. Do I need to create a ColorMap Segment (CMS) and associate it with the window? Do I need to use XCreateImage()? Am I even close? Once the picture is in there, I merely want to click the mouse SELECT button to see the actual value of a pixel at the current mouse position. I have this much, but can't make the images show up in the canvas. Help? adv{THANKS}ance wpr --- Walter Rowe rowe@cme.nist.gov ...!uunet!cme-durer!rowe