Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!rpi!bu.edu!purdue!haven!decuac!bacchus.pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Pixmap conversion Message-ID: <1990Oct26.102718@wsl.dec.com> Date: 26 Oct 90 17:27:18 GMT References: <9010260843.AA05138@hal.nta.no> Sender: news@wrl.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 15 In article <9010260843.AA05138@hal.nta.no>, pere@HAL.NTA.NO (Per Einar Dybvik FDX) writes: |> My program crashes on a Color display, because of |> the Pixmap used is of depth 1. Is there any way that I |> can read a bitmapfile and convert this into a Pixmap |> with depth > 1? I take it that your problem is that you're doing a XCopyArea from a depth = 1 pixmap to a depth > 1 window. If this is this case, try using XCopyPlane instead. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee