/aoo41x/main/tools/source/generic/ |
H A D | color.cxx | 349 sal_uInt16 nGreen; in operator >>() local 362 nGreen = 0; in operator >>() 397 nGreen = cAry[i]; in operator >>() 398 nGreen <<= 8; in operator >>() 400 nGreen |= cAry[i]; in operator >>() 405 nGreen = cAry[i]; in operator >>() 406 nGreen <<= 8; in operator >>() 427 rIStream >> nGreen; in operator >>() 490 nGreen = (nGreen<<8) + nGreen; in operator <<() 512 if ( nGreen & 0x00FF ) in operator <<() [all …]
|
/aoo41x/main/vcl/inc/ |
H A D | impoct.hxx | 36 long nGreen; member in ImpErrorQuad 45 nGreen ( (long) rColor.GetGreen() << 5L ), in ImpErrorQuad() 64 nGreen = (long) rColor.GetGreen() << 5L; in operator =() 73 nGreen -= ( (long) rColor.GetGreen() << 5L ); in operator -=() 84 nGreen += ( rErrQuad.nGreen >> 4L ); in ImplAddColorError1() 93 nGreen += ( rErrQuad.nGreen * 3L >> 4L ); in ImplAddColorError3() 102 nGreen += ( rErrQuad.nGreen * 5L >> 4L ); in ImplAddColorError5() 111 nGreen += ( rErrQuad.nGreen * 7L >> 4L ); in ImplAddColorError7() 120 (sal_uInt8) ( ( nGreen < 0L ? 0L : nGreen > 8160L ? 8160L : nGreen ) >> 5L ), in ImplGetColor()
|
/aoo41x/main/filter/source/graphicfilter/itga/ |
H A D | itga.cxx | 283 sal_uInt8 nRed, nGreen, nBlue, nRunCount, nDummy, nDepth; in ImplReadBody() local 324 nGreen = (sal_uInt8)( mpColorMap[ nRGB16 ] >> 8 ); in ImplReadBody() 439 *mpTGA >> nBlue >> nGreen >> nRed >> nDummy; in ImplReadBody() 461 *mpTGA >> nBlue >> nGreen >> nRed >> nDummy; in ImplReadBody() 488 *mpTGA >> nBlue >> nGreen >> nRed; in ImplReadBody() 510 *mpTGA >> nBlue >> nGreen >> nRed; in ImplReadBody() 538 nGreen = (sal_uInt8)( nRGB16 >> 2 ) & 0xf8; in ImplReadBody() 563 nGreen = (sal_uInt8)( nRGB16 >> 2 ) & 0xf8; in ImplReadBody() 636 *mpTGA >> nBlue >> nGreen >> nRed >> nDummy; in ImplReadBody() 646 *mpTGA >> nBlue >> nGreen >> nRed; in ImplReadBody() [all …]
|
/aoo41x/main/filter/source/graphicfilter/iras/ |
H A D | iras.cxx | 128 sal_uInt8 nRed[256], nGreen[256], nBlue[256]; in ReadRAS() local 130 for ( i = 0; i < mnDstColors; i++ ) *mpRAS >> nGreen[ i ]; in ReadRAS() 134 mpAcc->SetPaletteColor( i, BitmapColor( nRed[ i ], nGreen[ i ], nBlue[ i ] ) ); in ReadRAS() 223 sal_uInt8 nRed, nGreen, nBlue; in ImplReadBody() local 265 nGreen = ImplGetByte(); in ImplReadBody() 271 nGreen = ImplGetByte(); in ImplReadBody() 274 mpAcc->SetPixel ( y, x, BitmapColor( nRed, nGreen, nBlue ) ); in ImplReadBody() 289 nGreen = ImplGetByte(); in ImplReadBody() 295 nGreen = ImplGetByte(); in ImplReadBody() 298 mpAcc->SetPixel ( y, x, BitmapColor( nRed, nGreen, nBlue ) ); in ImplReadBody()
|
/aoo41x/main/filter/source/graphicfilter/ipcd/ |
H A D | ipcd.cxx | 216 long nL,nCb,nCr,nRed,nGreen,nBlue; in ReadImage() local 339 nGreen = ( nL - nCb * 28198L - nCr * 60761L + 0x8000 ) >> 16; in ReadImage() 340 if ( nGreen < 0 ) in ReadImage() 341 nGreen = 0; in ReadImage() 342 if ( nGreen > 255 ) in ReadImage() 343 nGreen = 255; in ReadImage() 354 … mpAcc->SetPixel( ny, nx, BitmapColor( (sal_uInt8)nRed, (sal_uInt8)nGreen, (sal_uInt8)nBlue ) ); in ReadImage() 356 …mpAcc->SetPixel( nWidth - 1 - nx, ny, BitmapColor( (sal_uInt8)nRed, (sal_uInt8)nGreen, (sal_uInt8)… in ReadImage() 361 … - 1 - ny, ( nWidth - 1 - nx ), BitmapColor( (sal_uInt8)nRed, (sal_uInt8)nGreen, (sal_uInt8)nBlue … in ReadImage() 363 …mpAcc->SetPixel( nx, ( nHeight - 1 - ny ), BitmapColor( (sal_uInt8)nRed, (sal_uInt8)nGreen, (sal_u… in ReadImage()
|
/aoo41x/main/slideshow/source/engine/ |
H A D | color.cxx | 53 HSLColor::HSLTriple rgb2hsl( double nRed, double nGreen, double nBlue ) in rgb2hsl() argument 58 const double nMax( ::std::max(nRed,::std::max(nGreen, nBlue)) ); in rgb2hsl() 59 const double nMin( ::std::min(nRed,::std::min(nGreen, nBlue)) ); in rgb2hsl() 79 aRes.mnHue = (nGreen - nBlue)/nDelta; in rgb2hsl() 80 else if( nGreen == nMax ) in rgb2hsl() 83 aRes.mnHue = 4.0 + (nRed - nGreen)/nDelta; in rgb2hsl() 354 RGBColor::RGBTriple::RGBTriple( double nRed, double nGreen, double nBlue ) : in RGBTriple() argument 356 mnGreen( nGreen ), in RGBTriple() 373 RGBColor::RGBColor( double nRed, double nGreen, double nBlue ) : in RGBColor() argument 374 maRGBTriple( nRed, nGreen, nBlue ) in RGBColor()
|
/aoo41x/main/vcl/source/gdi/ |
H A D | outdev4.cxx | 238 sal_uInt8 nGreen; in ImplDrawLinearGradient() local 247 nGreen = (sal_uInt8)nStartGreen; in ImplDrawLinearGradient() 252 mpGraphics->SetFillColor( MAKE_SALCOLOR( nRed, nGreen, nBlue ) ); in ImplDrawLinearGradient() 331 nGreen = ImplGetGradientColorValue((long)fTempColor); in ImplDrawLinearGradient() 337 mpGraphics->SetFillColor( MAKE_SALCOLOR( nRed, nGreen, nBlue ) ); in ImplDrawLinearGradient() 370 nGreen = ImplGetGradientColorValue(nEndGreen); in ImplDrawLinearGradient() 375 mpGraphics->SetFillColor( MAKE_SALCOLOR( nRed, nGreen, nBlue ) ); in ImplDrawLinearGradient() 531 mpGraphics->SetFillColor( MAKE_SALCOLOR( nRed, nGreen, nBlue ) ); in ImplDrawComplexGradient() 599 mpGraphics->SetFillColor( MAKE_SALCOLOR( nRed, nGreen, nBlue ) ); in ImplDrawComplexGradient() 626 nGreen = ImplGetGradientColorValue( nEndGreen ); in ImplDrawComplexGradient() [all …]
|
H A D | pngread.cxx | 763 sal_uInt8 nGreen = mpColorTable[ *maDataIter++ ]; in ImplReadPalette() local 765 mpAcc->SetPaletteColor( i, Color( nRed, nGreen, nBlue ) ); in ImplReadPalette() 917 sal_uInt8 nGreen = ImplScaleColor(); in ImplGetBackground() local 919 mpAcc->Erase( Color( nRed, nGreen, nBlue ) ); in ImplGetBackground() 1503 sal_uInt8 nGreen = pTmp[ 1 ]; in ImplDrawScanline() local 1506 && ( nGreen == mnTransGreen ) in ImplDrawScanline() 1510 mpColorTable[ nGreen ], in ImplDrawScanline() 1520 sal_uInt8 nGreen = pTmp[ 2 ]; in ImplDrawScanline() local 1523 && ( nGreen == mnTransGreen ) in ImplDrawScanline() 1527 mpColorTable[ nGreen ], in ImplDrawScanline()
|
H A D | octree.cxx | 201 (*ppNode)->nGreen += pColor->GetGreen(); in ImplAdd() 240 nGreenSum += pChild->nGreen; in ImplReduce() 252 pNode->nGreen = nGreenSum; in ImplReduce() 265 (sal_uInt8) ( (double) pNode->nGreen / pNode->nCount ), in CreatePalette()
|
/aoo41x/main/cppcanvas/inc/cppcanvas/ |
H A D | color.hxx | 74 …inline Color::IntSRGBA makeColor( sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue, sal_uInt8 nAl… in makeColor() argument 76 return (nRed << 24U)|(nGreen << 16U)|(nBlue << 8U)|(nAlpha); in makeColor() 79 … inline sal_Int32 unMakeColor( sal_uInt8 nAlpha, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue) in unMakeColor() argument 81 return (nAlpha << 24U)|(nRed << 16U)|(nGreen << 8U)|(nBlue); in unMakeColor() 84 …inline sal_Int32 makeColorARGB( sal_uInt8 nAlpha, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlu… in makeColorARGB() argument 86 return (nAlpha << 24U)|(nRed << 16U)|(nGreen << 8U)|(nBlue); in makeColorARGB()
|
/aoo41x/main/tools/inc/tools/ |
H A D | color.hxx | 121 Color( sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue ) in Color() argument 122 { mnColor = RGB_COLORDATA( nRed, nGreen, nBlue ); } in Color() 123 Color( sal_uInt8 nTransparency, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue ) in Color() argument 124 { mnColor = TRGB_COLORDATA( nTransparency, nRed, nGreen, nBlue ); } in Color() 139 void SetGreen( sal_uInt8 nGreen ); 202 inline void Color::SetGreen( sal_uInt8 nGreen ) in SetGreen() argument 205 mnColor |= ((sal_uInt16)nGreen)<<8; in SetGreen()
|
/aoo41x/main/odk/examples/DevelopersGuide/GUI/ |
H A D | MessageBox.java | 194 int nGreen = getGreenColorShare(nUIColor); in isHighContrastModeActivated() local 196 int nLuminance = (( nBlue*28 + nGreen*151 + nRed*77 ) / 256 ); in isHighContrastModeActivated() 211 int nGreen = (int) (nRedModulo / 256); in getRedColorShare() local 220 int nGreen = (int) (nRedModulo / 256); in getGreenColorShare() local 221 return nGreen; in getGreenColorShare() 227 int nGreen = (int) (nRedModulo / 256); in getBlueColorShare() local
|
/aoo41x/main/filter/source/graphicfilter/itiff/ |
H A D | itiff.cxx | 729 sal_uInt32 nRed, nGreen, nBlue, ns, nx, nVal, nByteCount; in ConvertScanline() local 771 nGreen = GetBits( pMap[ 1 ], ( nx * nSamplesPerPixel + 1 ) * nBitsPerSample, nBitsPerSample ); in ConvertScanline() 777 nGreen = GetBits( pMap[ 1 ], nx * nBitsPerSample, nBitsPerSample ); in ConvertScanline() 780 …pAcc->SetPixel( nY, nx, Color( (sal_uInt8)( nRed - nMinMax ), (sal_uInt8)( nGreen - nMinMax ), (sa… in ConvertScanline() 794 nGreen = GetBits( pMap[ 0 ],( nx * nSamplesPerPixel + 1 ) * nBitsPerSample, nBitsPerSample ); in ConvertScanline() 800 nGreen = GetBits( pMap[ 1 ], nx * nBitsPerSample, nBitsPerSample ); in ConvertScanline() 804 nGreen = 255 - (sal_uInt8)( nGreen - nMinMax ); in ConvertScanline() 806 pAcc->SetPixel( nY, nx, Color( (sal_uInt8) nRed, (sal_uInt8) nGreen, (sal_uInt8) nBlue ) ); in ConvertScanline() 845 …nGreen = (sal_uInt8) Max( 0L, 255L - ( ( (long) nSamp[ 1 ] + nBlack - ( ( (long) nMinSampleValue )… in ConvertScanline() 849 pAcc->SetPixel( nY, nx, Color ( (sal_uInt8)nRed, (sal_uInt8)nGreen, (sal_uInt8)nBlue ) ); in ConvertScanline()
|
/aoo41x/main/vcl/win/source/gdi/ |
H A D | salgdi.cxx | 237 BYTE nRed, nGreen, nBlue; in ImplInitSalGDI() local 257 for( nG=0, nGreen=0; nG < DITHER_PAL_STEPS; nG++, nGreen += DITHER_PAL_DELTA ) in ImplInitSalGDI() 262 pPalEntry->peGreen = nGreen; in ImplInitSalGDI() 396 static int ImplIsPaletteEntry( BYTE nRed, BYTE nGreen, BYTE nBlue ) in ImplIsPaletteEntry() argument 407 if( pPalEntry->peRed == nRed && pPalEntry->peGreen == nGreen && pPalEntry->peBlue == nBlue ) in ImplIsPaletteEntry() 413 aImplExtraColor1.peGreen == nGreen && in ImplIsPaletteEntry() 1194 BYTE nGreen = SALCOLOR_GREEN( nSalColor ); in SetFillColor() local 1196 COLORREF nBrushColor = PALETTERGB( nRed, nGreen, nBlue ); in SetFillColor() 1235 *pTmp++ = DMAP( nGreen, nThres ); in SetFillColor() 1247 else if ( ImplIsPaletteEntry( nRed, nGreen, nBlue ) ) in SetFillColor() [all …]
|
/aoo41x/main/filter/source/graphicfilter/ipict/ |
H A D | ipict.cxx | 717 sal_uInt8 nDat, nRed, nGreen, nBlue, nDummy; in ReadPixMapEtc() local 767 *pPict >> nRed >> nDummy >> nGreen >> nDummy >> nBlue >> nDummy; in ReadPixMapEtc() 917 nGreen = (sal_uInt8)( nD >> 2 ); in ReadPixMapEtc() 919 pAcc->SetPixel( ny, nx++, BitmapColor( nRed, nGreen, nBlue ) ); in ReadPixMapEtc() 949 nGreen = (sal_uInt8)( nD >> 2 ); in ReadPixMapEtc() 951 pAcc->SetPixel( ny, nx++, BitmapColor( nRed, nGreen, nBlue ) ); in ReadPixMapEtc() 961 nGreen = (sal_uInt8)( nD >> 2 ); in ReadPixMapEtc() 993 *pPict >> nDummy >> nRed >> nGreen >> nBlue; in ReadPixMapEtc() 994 pAcc->SetPixel( ny, nx, BitmapColor( nRed, nGreen, nBlue) ); in ReadPixMapEtc() 1006 *pPict >> nRed >> nGreen >> nBlue; in ReadPixMapEtc() [all …]
|
/aoo41x/main/sc/source/ui/vba/ |
H A D | vbahelper.cxx | 348 sal_Int32 nGreen = nCol; in OORGBToXLRGB() local 349 nGreen &= 0x0000FF00; in OORGBToXLRGB() 350 nGreen >>= 8; in OORGBToXLRGB() 353 sal_Int32 nRGB = ( (nBlue << 16) | (nGreen << 8) | nRed ); in OORGBToXLRGB() 362 sal_Int32 nGreen = nCol; in XLRGBToOORGB() local 363 nGreen &= 0x0000FF00; in XLRGBToOORGB() 364 nGreen >>= 8; in XLRGBToOORGB() 367 sal_Int32 nRGB = ( (nRed << 16) | (nGreen << 8) | nBlue ); in XLRGBToOORGB()
|
/aoo41x/main/basebmp/inc/basebmp/ |
H A D | color.hxx | 44 Color( sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue ) : in Color() argument 45 mnColor( ((sal_uInt32)nRed << 16) | ((sal_uInt32)nGreen << 8) | nBlue ) in Color() 49 void setGreen( sal_uInt8 nGreen ) { mnColor &= ~0x0000FF00UL; mnColor |= (sal_uInt32)nGreen << 8; } in setGreen() argument
|
/aoo41x/main/desktop/source/splash/ |
H A D | splash.cxx | 323 sal_uInt8 nGreen = 0; in loadConfig() local 334 nGreen = static_cast< sal_uInt8 >( temp ); in loadConfig() 336 _cProgressFrameColor = Color( nRed, nGreen, nBlue ); in loadConfig() 348 sal_uInt8 nGreen = 0; in loadConfig() local 359 nGreen = static_cast< sal_uInt8 >( temp ); in loadConfig() 361 _cProgressBarColor = Color( nRed, nGreen, nBlue ); in loadConfig()
|
/aoo41x/main/sdext/source/pdfimport/misc/ |
H A D | pdfihelper.cxx | 39 … const sal_uInt8 nGreen( sal::static_int_cast<sal_Int8>( basegfx::fround( rCol.Green * 255.0 ) ) ); in getColorString() local 45 if( nGreen < 10 ) in getColorString() 47 aBuf.append( sal_Int32(nGreen), 16 ); in getColorString()
|
/aoo41x/main/writerfilter/source/dmapper/ |
H A D | CellColorHandler.cxx | 219 sal_uInt32 nGreen = ((nFore & 0xff00)>>0x8) * nWW8BrushStyle; in getProperties() local 222 nGreen += ((nBack & 0xff00)>>0x8)* (1000L - nWW8BrushStyle); in getProperties() 225 nApplyColor = ( (nRed/1000) << 0x10 ) + ((nGreen/1000) << 8) + nBlue/1000; in getProperties()
|
/aoo41x/main/filter/source/graphicfilter/ipsd/ |
H A D | ipsd.cxx | 346 sal_uInt8 nDat = 0, nDummy, nRed, nGreen, nBlue; in ImplReadBody() local 505 *mpPSD >> nGreen; in ImplReadBody() 511 …mpWriteAcc->SetPixel( nY, nX, BitmapColor( aBitmapColor.GetRed(), nGreen, aBitmapColor.GetBlue() )… in ImplReadBody() 525 *mpPSD >> nGreen; in ImplReadBody() 529 …mpWriteAcc->SetPixel( nY, nX, BitmapColor( aBitmapColor.GetRed(), nGreen, aBitmapColor.GetBlue() )… in ImplReadBody()
|
/aoo41x/main/vbahelper/source/vbahelper/ |
H A D | vbahelper.cxx | 492 sal_Int32 nGreen = nCol; in OORGBToXLRGB() local 493 nGreen &= 0x0000FF00; in OORGBToXLRGB() 494 nGreen >>= 8; in OORGBToXLRGB() 497 sal_Int32 nRGB = ( nAutoBits | (nBlue << 16) | (nGreen << 8) | nRed ); in OORGBToXLRGB() 509 sal_Int32 nGreen = nCol; in XLRGBToOORGB() local 510 nGreen &= 0x0000FF00; in XLRGBToOORGB() 511 nGreen >>= 8; in XLRGBToOORGB() 514 sal_Int32 nRGB = ( nAutoBits | (nRed << 16) | (nGreen << 8) | nBlue ); in XLRGBToOORGB()
|
/aoo41x/main/svx/source/sidebar/graphic/ |
H A D | GraphicPropertyPanel.cxx | 259 const sal_Int16 nGreen = mpMtrGreen->GetValue(); in IMPL_LINK() local 260 const SfxInt16Item aGreenItem( SID_ATTR_GRAF_GREEN, nGreen ); in IMPL_LINK() 470 const sal_Int64 nGreen = pItem->GetValue(); in NotifyItemUpdate() local 471 mpMtrGreen->SetValue( nGreen ); in NotifyItemUpdate()
|
/aoo41x/main/filter/source/graphicfilter/ipbm/ |
H A D | ipbm.cxx | 320 sal_uLong nRed, nGreen, nBlue; in ImplReadBody() local 323 nGreen = 255 * nG / mnMaxVal; in ImplReadBody() 325 …mpAcc->SetPixel( nHeight, nWidth++, BitmapColor( (sal_uInt8)nRed, (sal_uInt8)nGreen, (sal_uInt8)nB… in ImplReadBody()
|
/aoo41x/main/wizards/com/sun/star/wizards/ui/ |
H A D | UnoDialog.java | 1061 int nGreen = getGreenColorShare(nUIColor); in isHighContrastModeActivated() local 1063 int nLuminance = ((nBlue * 28 + nGreen * 151 + nRed * 77) / 256); in isHighContrastModeActivated() 1083 int nGreen = nRedModulo / 256; in getRedColorShare() local 1093 int nGreen = nRedModulo / 256; in getGreenColorShare() local 1094 return nGreen; in getGreenColorShare() 1101 int nGreen = nRedModulo / 256; in getBlueColorShare() local
|