Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!lavaca.uh.edu!jetson.uh.edu!elee6i5 From: elee6i5@jetson.uh.edu Newsgroups: comp.windows.x Subject: Yet another Help - Displaying image!! Message-ID: <6887.26e6dc5e@jetson.uh.edu> Date: 7 Sep 90 04:31:41 GMT Organization: University of Houston Lines: 31 I am trying to display an image file consisting of 256X256 bytes of binary values. The display has a depth of 4 and I have allocated private color cells for 16 colors .(Since the display depth is 4, I guess it can display only 16 levels of gray). What values should I store in the red, blue and green fields of the array of XColor structure before calling XStoreColors in order to store appropriate primary color components corresponding to 16 levels of gray. When I try to display the image( ZPixmap pointing to my data) on the window calling XPutImage on "exposure", I get the following error message: X Protocol error detected by server: parameter mismatch Failed request major op code 72 X_PutImage Failed request minor op code 0 (if applicable) ResourceID 0x500003 in failed request (if applicable) Serial number of failed request 11 Current serial number in output stream 11 What could be the reason? Please mail your opinion ... Thanks in advance, .sundar elee6i5@jane.uh.edu sundar@izmir.ee.uh.edu