Lines Matching refs:x
116 inline void X11_writeScanlinePixel( unsigned long nColor, sal_uInt8* pScanline, int depth, int x ) in X11_writeScanlinePixel() argument
121 pScanline[ x/8 ] &= ~(1 << (x&7)); in X11_writeScanlinePixel()
122 pScanline[ x/8 ] |= ((nColor & 1) << (x&7)); in X11_writeScanlinePixel()
125 pScanline[ x/2 ] &= ((x&1) ? 0x0f : 0xf0); in X11_writeScanlinePixel()
126 pScanline[ x/2 ] |= ((x&1) ? (nColor & 0x0f) : ((nColor & 0x0f) << 4)); in X11_writeScanlinePixel()
130 pScanline[ x ] = (nColor & 0xff); in X11_writeScanlinePixel()
182 for( int x = 0; x < pImage->width; x++ ) in X11_getPaletteBmpFromImage() local
184 unsigned long nPixel = XGetPixel( pImage, x, y ); in X11_getPaletteBmpFromImage()
187 X11_writeScanlinePixel( nPixel, pScanline, pImage->depth, x ); in X11_getPaletteBmpFromImage()
305 for( int x = 0; x < pImage->width; x++ ) in X11_getTCBmpFromImage() local
307 unsigned long nPixel = XGetPixel( pImage, x, y ); in X11_getTCBmpFromImage()
353 int x,y; in X11_getBmpFromPixmap() local
355 XGetGeometry( pDisplay, aDrawable, &aRoot, &x, &y, &w, &h, &bw, &d ); in X11_getBmpFromPixmap()
517 for( unsigned int x = 0; x < nWidth; x++ ) in setBitmapDataPalette() local
522 case 1: nCol = (pScanline[ x/8 ] & (0x80 >> (x&7))) != 0 ? 0 : 1; break; in setBitmapDataPalette()
524 if( x & 1 ) in setBitmapDataPalette()
525 nCol = (int)(pScanline[ x/2 ] >> 4); in setBitmapDataPalette()
527 nCol = (int)(pScanline[ x/2 ] & 0x0f); in setBitmapDataPalette()
529 case 8: nCol = (int)pScanline[x]; in setBitmapDataPalette()
531 XPutPixel( pImage, x, y, aPalette[nCol].pixel ); in setBitmapDataPalette()
593 for( int x = 0; x < (int)nWidth; x++ ) in setBitmapDataTCDither() local
595 sal_uInt8 b = pScanline[3*x]; in setBitmapDataTCDither()
596 sal_uInt8 g = pScanline[3*x+1]; in setBitmapDataTCDither()
597 sal_uInt8 r = pScanline[3*x+2]; in setBitmapDataTCDither()
600 XPutPixel( pImage, x, y, aPalette[ i ].pixel ); in setBitmapDataTCDither()
622 for( int x = 0; x < (int)nWidth; x++ ) in setBitmapDataTC() local
624 unsigned long nPixel = getTCPixel( pScanline[3*x+2], pScanline[3*x+1], pScanline[3*x] ); in setBitmapDataTC()
625 XPutPixel( pImage, x, y, nPixel ); in setBitmapDataTC()