Home
last modified time | relevance | path

Searched refs:nRed (Results 1 – 25 of 62) sorted by relevance

123

/trunk/main/tools/source/generic/
H A Dcolor.cxx348 sal_uInt16 nRed; in operator >>() local
361 nRed = 0; in operator >>()
383 nRed = cAry[i]; in operator >>()
384 nRed <<= 8; in operator >>()
386 nRed |= cAry[i]; in operator >>()
391 nRed = cAry[i]; in operator >>()
392 nRed <<= 8; in operator >>()
426 rIStream >> nRed; in operator >>()
489 nRed = (nRed<<8) + nRed; in operator <<()
498 if ( nRed & 0x00FF ) in operator <<()
[all …]
/trunk/main/filter/source/graphicfilter/itga/
H A Ditga.cxx323 nRed = (sal_uInt8)( mpColorMap[ nRGB16 ] >> 16 ); 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()
537 nRed = (sal_uInt8)( nRGB16 >> 7 ) & 0xf8; in ImplReadBody()
562 nRed = (sal_uInt8)( nRGB16 >> 7 ) & 0xf8; in ImplReadBody()
606 nRed = (sal_uInt8)( mpColorMap[ nRGB16 ] >> 16 ); in ImplReadBody()
636 *mpTGA >> nBlue >> nGreen >> nRed >> nDummy; in ImplReadBody()
646 *mpTGA >> nBlue >> nGreen >> nRed; in ImplReadBody()
[all …]
/trunk/main/vcl/inc/
H A Dimpoct.hxx35 long nRed; member in ImpErrorQuad
44 nRed ( (long) rColor.GetRed() << 5L ), in ImpErrorQuad()
63 nRed = (long) rColor.GetRed() << 5L; in operator =()
72 nRed -= ( (long) rColor.GetRed() << 5L ); in operator -=()
83 nRed += ( rErrQuad.nRed >> 4L ); in ImplAddColorError1()
92 nRed += ( rErrQuad.nRed * 3L >> 4L ); in ImplAddColorError3()
101 nRed += ( rErrQuad.nRed * 5L >> 4L ); in ImplAddColorError5()
110 nRed += ( rErrQuad.nRed * 7L >> 4L ); in ImplAddColorError7()
119 return BitmapColor( (sal_uInt8) ( ( nRed < 0L ? 0L : nRed > 8160L ? 8160L : nRed ) >> 5L ), in ImplGetColor()
/trunk/main/filter/source/graphicfilter/iras/
H A Diras.cxx128 sal_uInt8 nRed[256], nGreen[256], nBlue[256]; in ReadRAS() local
129 for ( i = 0; i < mnDstColors; i++ ) *mpRAS >> nRed[ 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
264 nRed = ImplGetByte(); in ImplReadBody()
272 nRed = ImplGetByte(); in ImplReadBody()
274 mpAcc->SetPixel ( y, x, BitmapColor( nRed, nGreen, nBlue ) ); in ImplReadBody()
288 nRed = ImplGetByte(); in ImplReadBody()
296 nRed = ImplGetByte(); in ImplReadBody()
298 mpAcc->SetPixel ( y, x, BitmapColor( nRed, nGreen, nBlue ) ); in ImplReadBody()
/trunk/main/filter/source/graphicfilter/ipcd/
H A Dipcd.cxx216 long nL,nCb,nCr,nRed,nGreen,nBlue; in ReadImage() local
334 nRed = ( nL + nCr * 119374L + 0x8000 ) >> 16; in ReadImage()
335 if ( nRed < 0 ) in ReadImage()
336 nRed = 0; in ReadImage()
337 if ( nRed > 255) in ReadImage()
338 nRed = 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 …mpAcc->SetPixel( nHeight - 1 - ny, ( nWidth - 1 - nx ), BitmapColor( (sal_uInt8)nRed, (sal_uInt8)n… in ReadImage()
363 …mpAcc->SetPixel( nx, ( nHeight - 1 - ny ), BitmapColor( (sal_uInt8)nRed, (sal_uInt8)nGreen, (sal_u… in ReadImage()
/trunk/main/slideshow/source/engine/
H A Dcolor.cxx53 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()
78 if( nRed == nMax ) in rgb2hsl()
81 aRes.mnHue = 2.0 + (nBlue - nRed)/nDelta; 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
355 mnRed( nRed ), in RGBTriple()
373 RGBColor::RGBColor( double nRed, double nGreen, double nBlue ) : in RGBColor() argument
374 maRGBTriple( nRed, nGreen, nBlue ) in RGBColor()
/trunk/main/vcl/source/gdi/
H A Doutdev4.cxx237 sal_uInt8 nRed; in ImplDrawLinearGradient() local
246 nRed = (sal_uInt8)nStartRed; in ImplDrawLinearGradient()
252 mpGraphics->SetFillColor( MAKE_SALCOLOR( nRed, nGreen, nBlue ) ); in ImplDrawLinearGradient()
329 nRed = ImplGetGradientColorValue((long)fTempColor); in ImplDrawLinearGradient()
337 mpGraphics->SetFillColor( MAKE_SALCOLOR( nRed, nGreen, nBlue ) ); in ImplDrawLinearGradient()
369 nRed = ImplGetGradientColorValue(nEndRed); 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()
625 nRed = ImplGetGradientColorValue( nEndRed ); in ImplDrawComplexGradient()
[all …]
H A Dpngread.cxx772 sal_uInt8 nRed = mpColorTable[ *maDataIter++ ]; in ImplReadPalette() local
775 mpAcc->SetPaletteColor( i, Color( nRed, nGreen, nBlue ) ); in ImplReadPalette()
926 sal_uInt8 nRed = ImplScaleColor(); in ImplGetBackground() local
929 mpAcc->Erase( Color( nRed, nGreen, nBlue ) ); in ImplGetBackground()
1512 sal_uInt8 nRed = pTmp[ 0 ]; in ImplDrawScanline() local
1515 sal_Bool bTransparent = ( ( nRed == mnTransRed ) in ImplDrawScanline()
1519 ImplSetTranspPixel( nY, nX, BitmapColor( mpColorTable[ nRed ], in ImplDrawScanline()
1529 sal_uInt8 nRed = pTmp[ 0 ]; in ImplDrawScanline() local
1532 sal_Bool bTransparent = ( ( nRed == mnTransRed ) in ImplDrawScanline()
1536 ImplSetTranspPixel( nY, nX, BitmapColor( mpColorTable[ nRed ], in ImplDrawScanline()
H A Doctree.cxx200 (*ppNode)->nRed += pColor->GetRed(); in ImplAdd()
239 nRedSum += pChild->nRed; in ImplReduce()
251 pNode->nRed = nRedSum; in ImplReduce()
264 aPal[ nPalIndex++ ] = BitmapColor( (sal_uInt8) ( (double) pNode->nRed / pNode->nCount ), in CreatePalette()
/trunk/main/cppcanvas/inc/cppcanvas/
H A Dcolor.hxx74 …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()
/trunk/main/tools/inc/tools/
H A Dcolor.hxx121 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()
137 void SetRed( sal_uInt8 nRed );
196 inline void Color::SetRed( sal_uInt8 nRed ) in SetRed() argument
199 mnColor |= ((sal_uInt32)nRed)<<16; in SetRed()
/trunk/main/odk/examples/DevelopersGuide/GUI/
H A DMessageBox.java193 int nRed = getRedColorShare(nUIColor); in isHighContrastModeActivated() local
196 int nLuminance = (( nBlue*28 + nGreen*151 + nRed*77 ) / 256 ); in isHighContrastModeActivated()
209 int nRed = (int) _nColor/65536; in getRedColorShare() local
214 return nRed; in getRedColorShare()
218 int nRed = (int) _nColor/65536; in getGreenColorShare() local
225 int nRed = (int) _nColor/65536; in getBlueColorShare() local
/trunk/main/filter/source/graphicfilter/itiff/
H A Ditiff.cxx729 sal_uInt32 nRed, nGreen, nBlue, ns, nx, nVal, nByteCount; in ConvertScanline() local
770 nRed = GetBits( pMap[ 0 ], ( nx * nSamplesPerPixel + 0 ) * nBitsPerSample, nBitsPerSample ); in ConvertScanline()
776 nRed = GetBits( pMap[ 0 ], nx * nBitsPerSample, nBitsPerSample ); in ConvertScanline()
780 …pAcc->SetPixel( nY, nx, Color( (sal_uInt8)( nRed - nMinMax ), (sal_uInt8)( nGreen - nMinMax ), (sa… in ConvertScanline()
793 nRed = GetBits( pMap[ 0 ],( nx * nSamplesPerPixel + 0 ) * nBitsPerSample, nBitsPerSample ); in ConvertScanline()
799 nRed = GetBits( pMap[ 0 ], nx * nBitsPerSample, nBitsPerSample ); in ConvertScanline()
803 nRed = 255 - (sal_uInt8)( nRed - nMinMax ); in ConvertScanline()
806 pAcc->SetPixel( nY, nx, Color( (sal_uInt8) nRed, (sal_uInt8) nGreen, (sal_uInt8) nBlue ) ); in ConvertScanline()
843nRed = (sal_uInt8) Max( 0L, 255L - ( ( (long) nSamp[ 0 ] + nBlack - ( ( (long) nMinSampleValue ) <… in ConvertScanline()
849 pAcc->SetPixel( nY, nx, Color ( (sal_uInt8)nRed, (sal_uInt8)nGreen, (sal_uInt8)nBlue ) ); in ConvertScanline()
/trunk/main/vcl/win/source/gdi/
H A Dsalgdi.cxx237 BYTE nRed, nGreen, nBlue; in ImplInitSalGDI() local
259 for( nR=0, nRed=0; nR < DITHER_PAL_STEPS; nR++, nRed += DITHER_PAL_DELTA ) in ImplInitSalGDI()
261 pPalEntry->peRed = nRed; 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()
412 if ( aImplExtraColor1.peRed == nRed && in ImplIsPaletteEntry()
1193 BYTE nRed = SALCOLOR_RED( nSalColor ); in SetFillColor() local
1196 COLORREF nBrushColor = PALETTERGB( nRed, nGreen, nBlue ); in SetFillColor()
1236 *pTmp++ = DMAP( nRed, nThres ); in SetFillColor()
1247 else if ( ImplIsPaletteEntry( nRed, nGreen, nBlue ) ) in SetFillColor()
[all …]
/trunk/main/filter/source/graphicfilter/ipict/
H A Dipict.cxx717 sal_uInt8 nDat, nRed, nGreen, nBlue, nDummy; in ReadPixMapEtc() local
767 *pPict >> nRed >> nDummy >> nGreen >> nDummy >> nBlue >> nDummy; in ReadPixMapEtc()
916 nRed = (sal_uInt8)( nD >> 7 ); in ReadPixMapEtc()
919 pAcc->SetPixel( ny, nx++, BitmapColor( nRed, nGreen, nBlue ) ); in ReadPixMapEtc()
948 nRed = (sal_uInt8)( nD >> 7 ); in ReadPixMapEtc()
951 pAcc->SetPixel( ny, nx++, BitmapColor( nRed, nGreen, nBlue ) ); in ReadPixMapEtc()
960 nRed = (sal_uInt8)( nD >> 7 ); 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 …]
/trunk/main/basebmp/inc/basebmp/
H A Dcolor.hxx44 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()
48 void setRed( sal_uInt8 nRed ) { mnColor &= ~0x00FF0000UL; mnColor |= (sal_uInt32)nRed << 16; } in setRed() argument
/trunk/main/sc/source/ui/vba/
H A Dvbahelper.cxx345 sal_Int32 nRed = nCol; in OORGBToXLRGB() local
346 nRed &= 0x00FF0000; in OORGBToXLRGB()
347 nRed >>= 16; in OORGBToXLRGB()
353 sal_Int32 nRGB = ( (nBlue << 16) | (nGreen << 8) | nRed ); in OORGBToXLRGB()
365 sal_Int32 nRed = nCol; in XLRGBToOORGB() local
366 nRed &= 0x000000FF; in XLRGBToOORGB()
367 sal_Int32 nRGB = ( (nRed << 16) | (nGreen << 8) | nBlue ); in XLRGBToOORGB()
/trunk/main/desktop/source/splash/
H A Dsplash.cxx322 sal_uInt8 nRed = 0; in loadConfig() local
329 nRed = static_cast< sal_uInt8 >( temp ); in loadConfig()
336 _cProgressFrameColor = Color( nRed, nGreen, nBlue ); in loadConfig()
347 sal_uInt8 nRed = 0; in loadConfig() local
354 nRed = static_cast< sal_uInt8 >( temp ); in loadConfig()
361 _cProgressBarColor = Color( nRed, nGreen, nBlue ); in loadConfig()
/trunk/main/sdext/source/pdfimport/misc/
H A Dpdfihelper.cxx38 const sal_uInt8 nRed ( sal::static_int_cast<sal_Int8>( basegfx::fround( rCol.Red * 255.0 ) ) ); in getColorString() local
42 if( nRed < 10 ) in getColorString()
44 aBuf.append( sal_Int32(nRed), 16 ); in getColorString()
/trunk/main/svtools/source/config/
H A Dcolorcfg.cxx549 const sal_uInt8 nRed = COLORDATA_RED( aRet.nColor); in GetColorValue() local
551 (nRed == COLORDATA_GREEN( aRet.nColor)) && in GetColorValue()
552 (nRed == COLORDATA_BLUE( aRet.nColor)) && in GetColorValue()
553 nRed > 102 && nRed < 153 ) in GetColorValue()
/trunk/main/writerfilter/source/dmapper/
H A DCellColorHandler.cxx218 sal_uInt32 nRed = ((nFore & 0xff0000)>>0x10) * nWW8BrushStyle; in getProperties() local
221 nRed += ((nBack & 0xff0000)>>0x10) * (1000L - nWW8BrushStyle); in getProperties()
225 nApplyColor = ( (nRed/1000) << 0x10 ) + ((nGreen/1000) << 8) + nBlue/1000; in getProperties()
/trunk/main/filter/source/graphicfilter/ipsd/
H A Dipsd.cxx346 sal_uInt8 nDat = 0, nDummy, nRed, nGreen, nBlue; in ImplReadBody() local
465 *mpPSD >> nRed; in ImplReadBody()
470 mpWriteAcc->SetPixel( nY, nX, BitmapColor( nRed, (sal_uInt8)0, (sal_uInt8)0 ) ); in ImplReadBody()
484 *mpPSD >> nRed; in ImplReadBody()
487 mpWriteAcc->SetPixel( nY, nX, BitmapColor( nRed, (sal_uInt8)0, (sal_uInt8)0 ) ); in ImplReadBody()
/trunk/main/svx/source/sidebar/graphic/
H A DGraphicPropertyPanel.cxx251 const sal_Int16 nRed = mpMtrRed->GetValue(); in IMPL_LINK() local
252 const SfxInt16Item aRedItem( SID_ATTR_GRAF_RED, nRed ); in IMPL_LINK()
448 const sal_Int64 nRed = pItem->GetValue(); in NotifyItemUpdate() local
449 mpMtrRed->SetValue( nRed ); in NotifyItemUpdate()
/trunk/main/vbahelper/source/vbahelper/
H A Dvbahelper.cxx489 sal_Int32 nRed = nCol; in OORGBToXLRGB() local
490 nRed &= 0x00FF0000; in OORGBToXLRGB()
491 nRed >>= 16; in OORGBToXLRGB()
497 sal_Int32 nRGB = ( nAutoBits | (nBlue << 16) | (nGreen << 8) | nRed ); in OORGBToXLRGB()
512 sal_Int32 nRed = nCol; in XLRGBToOORGB() local
513 nRed &= 0x000000FF; in XLRGBToOORGB()
514 sal_Int32 nRGB = ( nAutoBits | (nRed << 16) | (nGreen << 8) | nBlue ); in XLRGBToOORGB()
/trunk/main/wizards/com/sun/star/wizards/ui/
H A DUnoDialog.java1060 int nRed = getRedColorShare(nUIColor); in isHighContrastModeActivated() local
1063 int nLuminance = ((nBlue * 28 + nGreen * 151 + nRed * 77) / 256); in isHighContrastModeActivated()
1081 int nRed = _nColor / 65536; in getRedColorShare() local
1086 return nRed; in getRedColorShare()
1091 int nRed = _nColor / 65536; in getGreenColorShare() local
1099 int nRed = _nColor / 65536; in getBlueColorShare() local

Completed in 142 milliseconds

123