Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!wuarchive!udel!eplrx7!cristy From: cristy@eplrx7.uucp (John Cristy) Newsgroups: comp.windows.x Subject: Bitmap_pad parameter in XCreateImage Message-ID: <1990Feb22.173227.15269@eplrx7.uucp> Date: 22 Feb 90 17:32:27 GMT Sender: usenet@udel.EDU Reply-To: cristy@eplrx7.UUCP (John Cristy) Distribution: usa Organization: DuPont Engineering Physics Lab Lines: 19 Should the bitmap_pad parameter in the XCreateImage routine match the value of XBitmapPad(display)? On an Ardent Titan, using a PseudoColor visual, if the bitmap_pad parameter is 8 instead of 32 (as returned from XBitmapPad(display), 3 pixels at the end of each scanline have random values (image is 512x512). If I change the bitmap pad to 32, the last few bytes of the scanline are black. I would perfer to leave the bitmap pad at 8 so when I create the image I do not need to take into account the extra padding at the end of each scanline (extra code). But if it is recommended to make the bitmap_pad parameter the same as XBitmapPad(display) I will write the extra code required. Thanks in adabance for your help. -- The UUCP Mailer