Lines Matching refs:imagePtr
202 XImage *imagePtr; /* Image structure for converted pixels. */
1456 XImage *imagePtr;
1508 if ((instancePtr->imagePtr == NULL)
1509 || (instancePtr->imagePtr->bits_per_pixel != bitsPerPixel)) {
1510 if (instancePtr->imagePtr != NULL) {
1511 XFree((char *) instancePtr->imagePtr);
1513 imagePtr = XCreateImage(instancePtr->display,
1517 instancePtr->imagePtr = imagePtr;
1528 if (imagePtr != NULL) {
1534 imagePtr->bitmap_unit = sizeof(pixel) * NBBY;
1537 imagePtr->byte_order = (kludge.i == 1) ? LSBFirst : MSBFirst;
1538 _XInitImageFuncPtrs(imagePtr);
1679 instancePtr->imagePtr = 0;
2974 if (instancePtr->imagePtr != NULL) {
2975 XFree((char *) instancePtr->imagePtr);
3642 XImage *imagePtr;
3689 imagePtr = instancePtr->imagePtr;
3690 if (imagePtr == NULL) {
3693 bitsPerPixel = imagePtr->bits_per_pixel;
3695 imagePtr->width = width;
3696 imagePtr->height = nLines;
3697 imagePtr->bytes_per_line = bytesPerLine;
3698 imagePtr->data = (char *) ckalloc((unsigned) (imagePtr->bytes_per_line * nLines));
3699 bigEndian = imagePtr->bitmap_bit_order == MSBFirst;
3700 firstBit = bigEndian? (1 << (imagePtr->bitmap_unit - 1)): 1;
3716 dstLinePtr = (unsigned char *) imagePtr->data;
3804 XPutPixel(imagePtr, x - xStart, y - yStart,
3855 XPutPixel(imagePtr, x - xStart, y - yStart,
3928 instancePtr->gc, imagePtr, 0, 0, xStart, yStart,
3934 ckfree(imagePtr->data);
3935 imagePtr->data = NULL;