Lines Matching refs:pBIH

541 		PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) GlobalLock( mhDIB );  in Create()  local
543 maSize = Size( pBIH->biWidth, pBIH->biHeight ); in Create()
544 mnBitCount = pBIH->biBitCount; in Create()
638 PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI; in Create() local
645 if( pBIH->biBitCount == 1 ) in Create()
647 hNewDDB = CreateBitmap( pBIH->biWidth, pBIH->biHeight, 1, 1, NULL ); in Create()
650 SetDIBits( hDC, hNewDDB, 0, pBIH->biHeight, pBits, pBI, DIB_RGB_COLORS ); in Create()
733 PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI; in ImplGetDIBColorCount() local
735 if ( pBIH->biSize != sizeof( BITMAPCOREHEADER ) ) in ImplGetDIBColorCount()
737 if( pBIH->biBitCount <= 8 ) in ImplGetDIBColorCount()
739 if ( pBIH->biClrUsed ) in ImplGetDIBColorCount()
740 nColors = (sal_uInt16) pBIH->biClrUsed; in ImplGetDIBColorCount()
742 nColors = 1 << pBIH->biBitCount; in ImplGetDIBColorCount()
784 PBITMAPINFOHEADER pBIH = reinterpret_cast<PBITMAPINFOHEADER>( pBI ); in ImplCreateDIB() local
786 pBIH->biSize = sizeof( BITMAPINFOHEADER ); in ImplCreateDIB()
787 pBIH->biWidth = rSize.Width(); in ImplCreateDIB()
788 pBIH->biHeight = rSize.Height(); in ImplCreateDIB()
789 pBIH->biPlanes = 1; in ImplCreateDIB()
790 pBIH->biBitCount = nBits; in ImplCreateDIB()
791 pBIH->biCompression = BI_RGB; in ImplCreateDIB()
792 pBIH->biSizeImage = nImageSize; in ImplCreateDIB()
793 pBIH->biXPelsPerMeter = 0; in ImplCreateDIB()
794 pBIH->biYPelsPerMeter = 0; in ImplCreateDIB()
795 pBIH->biClrUsed = 0; in ImplCreateDIB()
796 pBIH->biClrImportant = 0; in ImplCreateDIB()
866 PBITMAPINFOHEADER pBIH = (PBITMAPINFOHEADER) pBI; in AcquireBuffer() local
868 if( ( pBIH->biCompression == BI_RLE4 ) || ( pBIH->biCompression == BI_RLE8 ) ) in AcquireBuffer()
870 Size aSizePix( pBIH->biWidth, pBIH->biHeight ); in AcquireBuffer()
871 HGLOBAL hNewDIB = ImplCreateDIB( aSizePix, pBIH->biBitCount, BitmapPalette() ); in AcquireBuffer()
884 ImplDecodeRLEBuffer( pOldBits, pNewBits, aSizePix, pBIH->biCompression == BI_RLE4 ); in AcquireBuffer()
890 pBIH = pNewBIH; in AcquireBuffer()
894 if( pBIH->biPlanes == 1 ) in AcquireBuffer()
899 ( pBIH->biBitCount == 1 ? BMP_FORMAT_1BIT_MSB_PAL : in AcquireBuffer()
900 pBIH->biBitCount == 4 ? BMP_FORMAT_4BIT_MSN_PAL : in AcquireBuffer()
901 pBIH->biBitCount == 8 ? BMP_FORMAT_8BIT_PAL : in AcquireBuffer()
902 pBIH->biBitCount == 16 ? BMP_FORMAT_16BIT_TC_LSB_MASK : in AcquireBuffer()
903 pBIH->biBitCount == 24 ? BMP_FORMAT_24BIT_TC_BGR : in AcquireBuffer()
904 pBIH->biBitCount == 32 ? BMP_FORMAT_32BIT_TC_MASK : 0UL ); in AcquireBuffer()
910 pBuffer->mnScanlineSize = AlignedWidth4Bytes( maSize.Width() * pBIH->biBitCount ); in AcquireBuffer()
911 pBuffer->mnBitCount = (sal_uInt16) pBIH->biBitCount; in AcquireBuffer()
921 else if( ( pBIH->biBitCount == 16 ) || ( pBIH->biBitCount == 32 ) ) in AcquireBuffer()
925 if( pBIH->biCompression == BI_BITFIELDS ) in AcquireBuffer()
932 else if( pBIH->biBitCount == 16 ) in AcquireBuffer()