[comp.windows.x] query: X analog to suntools memory pixrect pr_rop?

jwm@RENOIR.BERKELEY.EDU (Jeff Mc Carrell) (03/23/87)

    My reading of the version 10 Xlib documentation leads me to believe
that there is no X analog to suntools pr_rop on memory pixrects.  For
those of you unfamiliar with suntools, what I want to be able to do is
to do lots of raster operations in my code to a destination that is not
an X window, and use X to display the results in one fell swoop.  I
understand that X is not a window system, with the implication that
anything I want to do in my code is my problem, but it seems to me that
something as generic as raster operations on bitmaps must have been
done before.

    It may be possible to handle this by doing window operations (which
include raster ops) on transparent windows, but one source claims that
this will not work as X will not actually perform the raster ops unless
the window is displayed (mapped) and unobscured by some other window.
The language of the v. 10 Xlib documentation seems to confirm this
hypothesis, though I haven't written any code to test it out.

    So the questions are: do I need to write bitmap raster operations
myself?  Has someone else done a reasonable implementation?  Another
source suggested that version 11 will fill in some of the holes of
version 10.  Where can one get ahold of the version 11 protocol
standard to find out?

					thanks,
						Jeff McCarrell
						jwm@renoir.Berkeley.EDU
						...!ucbvax!jwm

ken@rochester.ARPA (Ken Yap) (03/23/87)

I believe V11 will allow raster operations on memory objects as well.
You can ftp V11 specs from zap.lcs.mit.edu (18.72.0.126).

	Ken

newman@ATHENA.MIT.EDU (Ron Newman) (03/23/87)

   ...what I want to be able to do is to do lots of raster operations
   to a destination that is not an X window, and use X to display the
   results in one fell swoop.

You can't do this in X 10.  In X 11, you can create an off-screen Pixmap,
do all of your raster-ops (or text painting, or line or curve drawing)
to that Pixmap, and then use the CopyArea request to copy bits from the
Pixmap to a Window of your choice.

   I understand that X is not a window system...

X certainly *is* a window system!

/Ron