int x, y;
unsigned int x, y;
GetImagePixels1(image, width, height, pmap, storeFunc)    XImage *image;    unsigned int width;    unsigned int height;    PixelsMap *pmap;    storeFuncPtr storeFunc;{    unsigned int *iptr;    int x, y;    char *data;    Pixel pixel;    int xoff, yoff, offset, bpl;    data = image->data;    iptr = pmap->pixelindex;    offset = image->xoffset;    bpl = image->bytes_per_line;    if (image->bitmap_bit_order == MSBFirst)	for (y = 0; y < height; y++)	    for (x = 0; x < width; x++, iptr++) {		xoff = x + offset;		yoff = y * bpl + (xoff >> 3);		xoff &= 7;		pixel = (data[yoff] & (0x80 >> xoff)) ? 1 : 0;		if ((*storeFunc) (pixel, pmap, iptr))		    return (XpmNoMemory);	    }    else	for (y = 0; y < height; y++)	    for (x = 0; x < width; x++, iptr++) {		xoff = x + offset;		yoff = y * bpl + (xoff >> 3);		xoff &= 7;		pixel = (data[yoff] & (1 << xoff)) ? 1 : 0;		if ((*storeFunc) (pixel, pmap, iptr))		    return (XpmNoMemory);	    }    return (XpmSuccess);}