Searched refs:nGreys (Results 1 – 1 of 1) sorted by relevance
515 sal_Bool Bitmap::ImplMakeGreyscales( sal_uInt16 nGreys ) in ImplMakeGreyscales() argument517 DBG_ASSERT( nGreys == 16 || nGreys == 256, "Only 16 or 256 grayscales are supported!" ); in ImplMakeGreyscales()524 const BitmapPalette& rPal = GetGreyPalette( nGreys ); in ImplMakeGreyscales()525 sal_uLong nShift = ( ( nGreys == 16 ) ? 4UL : 0UL ); in ImplMakeGreyscales()533 Bitmap aNewBmp( GetSizePixel(), ( nGreys == 16 ) ? 4 : 8, &rPal ); in ImplMakeGreyscales()
Completed in 28 milliseconds