[comp.windows.x] pixmap

abmg@cathedral.cerc.wvu.wvnet.edu (Aliasghar Babadi) (10/18/90)

	should pixmap depth  be equal to the root window depth ?
	what if workstation has two root windows with different depth.
	Thanks for your comments.

 

etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) (10/19/90)

In article <921@babcock.cerc.wvu.wvnet.edu>, abmg@cathedral.cerc.wvu.wvnet.edu (Aliasghar Babadi) writes:
|> 
|> 	should pixmap depth  be equal to the root window depth ?
|> 	what if workstation has two root windows with different depth.
|> 	Thanks for your comments.
|> 
|>  


A Pixmap's depth can be whatever its root supports.  I am pretty sure that
all X implementations accept pixmaps of depth 1 for use as BITMAPS.

Since you have to tell a pixmap what its root window is, you simply have decide
which root window you want to use.  (presumably DefaultRootWindow(display)).
-- 
					Eric Taylor
					Baylor College of Medicine
					etaylor@wilkins.bmc.tmc.edu
					(713) 798-3776

klee@wsl.dec.com (Ken Lee) (10/19/90)

In article <921@babcock.cerc.wvu.wvnet.edu>, abmg@cathedral.cerc.wvu.wvnet.edu (Aliasghar Babadi) writes:
|> 
|> 	should pixmap depth  be equal to the root window depth ?
|> 	what if workstation has two root windows with different depth.

A pixmap must be created for a particular screen.  It can have any
depth supported by that screen.  XGetVisualInfo will tell you what
depths are supported.  A depth of 1 is always supported.  Others are
optional.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee