Lines Matching refs:pImage
137 XImage* pImage, in X11_getPaletteBmpFromImage() argument
150 switch( pImage->depth ) in X11_getPaletteBmpFromImage()
154 nScanlineSize = (pImage->width+31)/32; in X11_getPaletteBmpFromImage()
159 nScanlineSize = (pImage->width+1)/2; in X11_getPaletteBmpFromImage()
165 nScanlineSize = pImage->width; in X11_getPaletteBmpFromImage()
177 rOutSize = nHeaderSize + nScanlineSize*pImage->height; in X11_getPaletteBmpFromImage()
179 for( int y = 0; y < pImage->height; y++ ) in X11_getPaletteBmpFromImage()
181 sal_uInt8* pScanline = pBuffer + nHeaderSize + (pImage->height-1-y)*nScanlineSize; in X11_getPaletteBmpFromImage()
182 for( int x = 0; x < pImage->width; x++ ) in X11_getPaletteBmpFromImage()
184 unsigned long nPixel = XGetPixel( pImage, x, y ); in X11_getPaletteBmpFromImage()
187 X11_writeScanlinePixel( nPixel, pScanline, pImage->depth, x ); in X11_getPaletteBmpFromImage()
197 writeLE( (sal_uInt32)pImage->width, pBuffer+18 ); in X11_getPaletteBmpFromImage()
198 writeLE( (sal_uInt32)pImage->height, pBuffer+22 ); in X11_getPaletteBmpFromImage()
270 XImage* pImage, in X11_getTCBmpFromImage() argument
277 if( ! XMatchVisualInfo( pDisplay, nScreenNo, pImage->depth, TrueColor, &aVInfo ) ) in X11_getTCBmpFromImage()
284 sal_uInt32 nScanlineSize = pImage->width*3; in X11_getTCBmpFromImage()
300 rOutSize = nHeaderSize + nScanlineSize*pImage->height; in X11_getTCBmpFromImage()
302 for( int y = 0; y < pImage->height; y++ ) in X11_getTCBmpFromImage()
304 sal_uInt8* pScanline = pBuffer + nHeaderSize + (pImage->height-1-y)*nScanlineSize; in X11_getTCBmpFromImage()
305 for( int x = 0; x < pImage->width; x++ ) in X11_getTCBmpFromImage()
307 unsigned long nPixel = XGetPixel( pImage, x, y ); in X11_getTCBmpFromImage()
332 writeLE( (sal_uInt32)pImage->width, pBuffer+18 ); in X11_getTCBmpFromImage()
333 writeLE( (sal_uInt32)pImage->height, pBuffer+22 ); in X11_getTCBmpFromImage()
371 XImage* pImage = XGetImage( pDisplay, aDrawable, 0, 0, w, h, AllPlanes, ZPixmap ); in X11_getBmpFromPixmap() local
372 if( ! pImage ) in X11_getBmpFromPixmap()
376 X11_getPaletteBmpFromImage( pDisplay, pImage, aColormap, rOutSize ) : in X11_getBmpFromPixmap()
377 X11_getTCBmpFromImage( pDisplay, pImage, rOutSize, nScreenNo ); in X11_getBmpFromPixmap()
378 XDestroyImage( pImage ); in X11_getBmpFromPixmap()
469 void PixmapHolder::setBitmapDataPalette( const sal_uInt8* pData, XImage* pImage ) in setBitmapDataPalette() argument
531 XPutPixel( pImage, x, y, aPalette[nCol].pixel ); in setBitmapDataPalette()
536 void PixmapHolder::setBitmapDataTCDither( const sal_uInt8* pData, XImage* pImage ) in setBitmapDataTCDither() argument
600 XPutPixel( pImage, x, y, aPalette[ i ].pixel ); in setBitmapDataTCDither()
605 void PixmapHolder::setBitmapDataTC( const sal_uInt8* pData, XImage* pImage ) in setBitmapDataTC() argument
625 XPutPixel( pImage, x, y, nPixel ); in setBitmapDataTC()