Xref: utzoo comp.windows.x:33783 comp.sys.next:13874 Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!caen!umich!wsu-cs!pandora.cs.wayne.edu!lee From: lee@pandora.cs.wayne.edu (Harrison Y. Lee) Newsgroups: comp.windows.x,comp.sys.next Subject: Re: X11R4 server for NeXT? Pencom's? Message-ID: <1991Mar8.001630.20831@cs.wayne.edu> Date: 8 Mar 91 00:16:30 GMT References: <1991Mar4.084733.5309@ircam.fr> Sender: Harrison lee Reply-To: lee@pandora.cs.wayne.edu (Harrison Y. Lee) Followup-To: Harrison Lee Organization: Wayne State University, Detroit Lines: 19 Hi there, I am *very new* to X window programming and I need to have something done. I have a program called xloadimage which can display an image on the screen, now what I need to do is to either use an available program or write up my own program to clip a part of the image and save the pixel values into a file ( the pixel values will be the gray level value of the pixel). The program will allow the user to click his mouse once on the upper left corner and lower right corner to define the region that he want to save, then the program will get the pixel values of the region and write them to a file. Does anyone knows if there is any program that can do this?? If I need to write my own program, can someone give me some pointers in approaching this problem (like which functions to use, please bear with me 'cuase I am *very* new in X window programming). Thanks for any helps!!