Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!emory!gatech!bloom-beacon!ICNUCEVM.CNUCE.CNR.IT!PATERNO From: PATERNO@ICNUCEVM.CNUCE.CNR.IT Newsgroups: comp.windows.x Subject: (none) Message-ID: <9012061432.AA08997@expo.lcs.mit.edu> Date: 6 Dec 90 14:32:50 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 7 The Xlib - C Language X Interface states that the function XCreateImage "allocates the memory needed for an XImage structure".... ..."but doesn't allocate space for the image itself." How can we determine the amount of space to be allocated for image data in the various formats (XY* or Z*)? i.e. if I have to display an image in a say 600x600 pixels window how many bytes I need to allocate?