cristy@eplrx7.uucp (John Cristy) (02/23/90)
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