home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!fuug!funic!sauna.cs.hut.fi!batman.cs.hut.fi!sti
- From: sti@batman.cs.hut.fi (Sami-Jaakko Tikka)
- Newsgroups: comp.windows.x
- Subject: Why are there pixmap depths that have no corresponding window depths?
- Date: 26 Jan 1993 11:17:27 GMT
- Organization: Helsinki University of Technology, CS lab
- Lines: 24
- Distribution: inet
- Message-ID: <1k36k7INN563@sauna.cs.hut.fi>
- NNTP-Posting-Host: batman.cs.hut.fi
-
-
- This might be a bit lowlevel question concerning X protocol:
-
- I have wondered why my X server supports pixmap formats that have
- depths like 3, 4, 8 but still it only has one Depth (8) which has a
- visual type (GrayScale).
-
- If my understanding is correct, in my situation I can only create
- windows of depth 8. However I can create pixmaps of depth 3 or 4.
- But now I cannot simply copy this pixmap to the window because they
- have different depths (so says the X protocol specs).
-
- I would first have to change the pixmap to have the same depth as the
- window and only after that do the copying. This seems to be what
- XCopyPlane() does, but at least according to the manual it only "uses
- a single bit plane of the specified source".
-
- So what is the use of having exotic pixmap depths like 3 or 4 which
- you cannot use (= copy to a window)?
- --
- Sami.Tikka@hut.fi | /G=Sami/S=Tikka/O=hut/ADMD=fumail/C=fi/
- "Live Long and Prosper!"
- ---------------------------------------------------------------------------
- TV-viisautta: "Vaate on puhdas kun siin{ ei ole tahroja."
-