Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!agate!ucbvax!UCBVAX.BERKELEY.EDU!"Dan Karron From: Dan Karron@UCBVAX.BERKELEY.EDU Newsgroups: comp.sys.sgi Subject: mode of a window Message-ID: <9105051952.AA15944@karron.med.nyu.edu> Date: 5 May 91 19:52:09 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: karron@cmcl2.nyu.edu Organization: The Internet Lines: 37 Is there anyway to determine what mode the pixels are in for interperting lrectread() values ? I need to know specifically if the bitplanes are in color map mode (cmode) or RGB mode. Then I know how to unpack the bits in lrectread. Also, how can I tell if I am in single or double buffer mode, and which buffer is being displayed on the screen. I want only to read pixels that are displayed. It might also be of value to do a lrectread of the hidden buffer (backbuffer) so that I can be certain that my image will not contain any pieces of poped windows. Can this be done ? What about a programatic (c call) to force my window to pop on top of all others. I am writing a automatic snapshot call that I am putting in my StickeyWindows package so that you can make an ipaste bitmap image of the window after each draw cycle. This way you can make a movie loop and animate render cycles that take too long to animate in real time. To make this general for all the modes that the bitplanes can be in, I need to know how to interrogate the bitplanes. If anyone has something similar, I would like to compare notes! Cheers! dan. . | karron@nyu.edu (e-mail alias ) Dan Karron, Research Associate | | Phone: 212 263 5210 Fax: 212 263 7190 New York University Medical Center | | 560 First Avenue Digital Pager <1> (212) 397 9330 | | New York, New York 10016 <2> 10896 <3> |