Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!uakari.primate.wisc.edu!uflorida!winnie!zach.fit.edu!rcs64241 From: (Sam) Newsgroups: comp.windows.x Subject: Help on Image package Message-ID: <1490@winnie.fit.edu> Date: 21 Oct 90 02:08:10 GMT Sender: usenet@winnie.fit.edu Distribution: usa Organization: Florida Institute of Technology, ACS, Melbourne, FL Lines: 16 Followup-To:sam@ee.fit.edu Hi, I am just started working on X windows. I tried to do some stuff on Images but got some problems. Can some one please send me examples on Image creation, etc. I was able to create an image but, irrespective of what I have in data, it displays a white screen. I tried using XPutPixel and initializing the data argument before creating the image both the times I get a white screen. I was trying to put gray scale in the image. I think the problem is the visual(second) argument I am passing. I dint really understand it. The way I was using XCreateImage was xi=XCreateImage(display,use_dynamic,8,XYPixmap,0,data,256,256,8,0); I am working on a Sparc 1+ (Sun) and using Open Windows 2.0 Can someone tell me what I am doing wrong. Thank you. Sam Email : sam@ee.fit.edu