Lines Matching refs:pImage

208 		XImage*	pImage = XGetImage( pXDisp, aDrawable, nX, nY, nWidth, nHeight, AllPlanes, ZPixmap );  in ImplCreateDIB()  local
212 if( ! bWasError && pImage && pImage->data ) in ImplCreateDIB()
222 aSrcBuf.mnBitCount = pImage->bits_per_pixel; in ImplCreateDIB()
223 aSrcBuf.mnScanlineSize = pImage->bytes_per_line; in ImplCreateDIB()
224 aSrcBuf.mpBits = (sal_uInt8*) pImage->data; in ImplCreateDIB()
226 pImage->red_mask = pSalDisp->GetVisual( nScreen ).red_mask; in ImplCreateDIB()
227 pImage->green_mask = pSalDisp->GetVisual( nScreen ).green_mask; in ImplCreateDIB()
228 pImage->blue_mask = pSalDisp->GetVisual( nScreen ).blue_mask; in ImplCreateDIB()
234 …aSrcBuf.mnFormat |= ( LSBFirst == pImage->bitmap_bit_order ? BMP_FORMAT_1BIT_LSB_PAL : BMP_FORMAT_… in ImplCreateDIB()
241 …aSrcBuf.mnFormat |= ( LSBFirst == pImage->bitmap_bit_order ? BMP_FORMAT_4BIT_LSN_PAL : BMP_FORMAT_… in ImplCreateDIB()
256 … aSrcBuf.maColorMask = ColorMask( pImage->red_mask, pImage->green_mask, pImage->blue_mask ); in ImplCreateDIB()
258 if( LSBFirst == pImage->byte_order ) in ImplCreateDIB()
272 if( ( LSBFirst == pImage->byte_order ) && ( pImage->red_mask == 0xFF ) ) in ImplCreateDIB()
283 if( LSBFirst == pImage->byte_order ) in ImplCreateDIB()
325 XDestroyImage( pImage ); in ImplCreateDIB()
336 XImage* pImage = NULL; in ImplCreateXImage() local
358 pImage = XCreateImage( pXDisp, pSalDisp->GetVisual( nScreen ).GetVisual(), in ImplCreateXImage()
362 if( pImage ) in ImplCreateXImage()
369 switch( pImage->bits_per_pixel ) in ImplCreateXImage()
372 …nDstFormat |= ( LSBFirst == pImage->bitmap_bit_order ? BMP_FORMAT_1BIT_LSB_PAL : BMP_FORMAT_1BIT_M… in ImplCreateXImage()
376 …nDstFormat |= ( LSBFirst == pImage->bitmap_bit_order ? BMP_FORMAT_4BIT_LSN_PAL : BMP_FORMAT_4BIT_M… in ImplCreateXImage()
387 if( MSBFirst == pImage->byte_order ) in ImplCreateXImage()
395 if( MSBFirst == pImage->byte_order ) in ImplCreateXImage()
396 pImage->byte_order = LSBFirst; in ImplCreateXImage()
400 pMask = new ColorMask( pImage->red_mask, pImage->green_mask, pImage->blue_mask ); in ImplCreateXImage()
406 if( ( LSBFirst == pImage->byte_order ) && ( pImage->red_mask == 0xFF ) ) in ImplCreateXImage()
415 if( LSBFirst == pImage->byte_order ) in ImplCreateXImage()
416 … nDstFormat |= ( pImage->red_mask == 0xFF ? BMP_FORMAT_32BIT_TC_RGBA : BMP_FORMAT_32BIT_TC_BGRA ); in ImplCreateXImage()
418 … nDstFormat |= ( pImage->red_mask == 0xFF ? BMP_FORMAT_32BIT_TC_ABGR : BMP_FORMAT_32BIT_TC_ARGB ); in ImplCreateXImage()
423 if( pImage->depth == 1 ) in ImplCreateXImage()
429 else if( pImage->depth <= 8 ) in ImplCreateXImage()
432 const sal_uInt16 nCols = Min( (sal_uLong)rColMap.GetUsed(), (sal_uLong)(1 << pImage->depth) ); in ImplCreateXImage()
454 pImage->data = (char*) pDstBuf->mpBits; in ImplCreateXImage()
461 XDestroyImage( pImage ); in ImplCreateXImage()
462 pImage = NULL; in ImplCreateXImage()
467 return pImage; in ImplCreateXImage()
546 XImage* pImage = XGetImage( pDisplay, aAttribute.root, in SnapShot() local
551 pImage ); in SnapShot()
552 XDestroyImage (pImage); in SnapShot()
564 …lBitmap::ImplCreateFromXImage (Display* pDisplay, XLIB_Window hWindow, int nScreen, XImage* pImage) in ImplCreateFromXImage() argument
568 if (pImage != NULL && pImage->width != 0 && pImage->height != 0 && pImage->depth != 0) in ImplCreateFromXImage()
570 mpDDB = new ImplSalDDB (pDisplay, hWindow, nScreen, pImage); in ImplCreateFromXImage()
653 XImage* pImage = ImplCreateXImage( GetX11SalData()->GetDisplay(), nScreen, in ImplGetDDB() local
656 if( pImage ) in ImplGetDDB()
658 const_cast<X11SalBitmap*>(this)->mpDDB = new ImplSalDDB( pImage, aDrawable, nScreen, aTwoRect ); in ImplGetDDB()
659 delete[] pImage->data, pImage->data = NULL; in ImplGetDDB()
660 XDestroyImage( pImage ); in ImplGetDDB()
842 ImplSalDDB::ImplSalDDB( XImage* pImage, Drawable aDrawable, int nScreen, const SalTwoRect& rTwoRect… in ImplSalDDB() argument
845 mnDepth ( pImage->depth ), in ImplSalDDB()
866 …XPutImage( pXDisp, maPixmap, aGC, pImage, 0, 0, 0, 0, maTwoRect.mnDestWidth, maTwoRect.mnDestHeigh… in ImplSalDDB()
874 ImplSalDDB::ImplSalDDB (Display* pDisplay, XLIB_Window hWindow, int nScreen, XImage* pImage) : in ImplSalDDB() argument
877 maPixmap = XCreatePixmap (pDisplay, hWindow, pImage->width, pImage->height, pImage->depth); in ImplSalDDB()
886 if (pImage->depth == 1) in ImplSalDDB()
894 XPutImage (pDisplay, maPixmap, aGC, pImage, 0, 0, 0, 0, pImage->width, pImage->height); in ImplSalDDB()
901 maTwoRect.mnSrcWidth = pImage->width; in ImplSalDDB()
902 maTwoRect.mnDestWidth = pImage->width; in ImplSalDDB()
903 maTwoRect.mnSrcHeight = pImage->height; in ImplSalDDB()
904 maTwoRect.mnDestHeight = pImage->height; in ImplSalDDB()
906 mnDepth = pImage->depth; in ImplSalDDB()