[comp.windows.x] question: XCopyArea and FillStippled

stumpf@lan.informatik.tu-muenchen.dbp.de (Markus Stumpf) (06/08/89)

Hello,

I have a problem with the XCopyArea call of Xlib:
Does this function support Tiling and Stippling?
In my program I create a Pixmap looking like
	.X.X
	X.X.
	.X.X
	X.X.
using XCreatePixmapFromBitmapData(), get a "default" GC with
XCreateGC, but with a PlaneMask of AllPlanes and with a FillStyle
of FillStippled. I then XSetStipple() this GC with the tiling pixmap
and do XCopyArea() a Pixmap (containing a symbol) to another. Later
in the program I do XCopyArea the later Pixmap into a window,
using the server's DefaultGC, but the symbol is shown solid instead
of stippled.
  If I draw a string with the "stippleGC", everything works right and
looks like I think it should. Same with XFillRectangle() - everything
is fine!
  Any hints would be appreciated.
  I'm using X.V11R3 with all 10 patches and the Perdue speedups in,
running on a mVax II with qvss display. Everything compiled with gcc-1.31.

Thanks in advance
	\Maex

+------------------------------------------------------------------------------+
|  Markus Stumpf                                                               |
|  TU Muenchen                        local: lan.informatik.tu-muenchen.dbp.de |
|  Inst. f. Informatik                  DFN: stumpf@{local}                    |
|  Arcisstrasse                        UUCP: stumpf%{local}@unido.uucp         |
|  D-8000 Muenchen                  ARPA/CS: stumpf%{local}@relay.cs.net       |
|  West Germany                      BITNET: infrza02@dm0tui1s.bitnet          |
+------------------------------------------------------------------------------+

rws@EXPO.LCS.MIT.EDU (06/11/89)

    I have a problem with the XCopyArea call of Xlib:
    Does this function support Tiling and Stippling?

No.  There's an easy way to determine this.  Look in the protocol spec
(e.g. page 410 in the Digital Press book) under the "GC components:"
section of the CopyArea request (and the lack of a "GC mode-dependent
components:".  Compare this, e.g., with PolyFillRectangle (page 416).
Notice that PolyFillRectangle references fill-style, tile, and stipple,
whereas CopyArea does not.