/trunk/main/vcl/source/gdi/ |
H A D | bitmap.cxx | 1306 const long nMinR = MinMax( (long) rTransColor.GetRed() - nTol, 0, 255 ); in CreateMask() 1307 const long nMaxR = MinMax( (long) rTransColor.GetRed() + nTol, 0, 255 ); in CreateMask() 1620 const long nMinR = MinMax( (long) rSearchColor.GetRed() - nTol, 0, 255 ); in Replace() 1621 const long nMaxR = MinMax( (long) rSearchColor.GetRed() + nTol, 0, 255 ); in Replace() 1624 const long nMinB = MinMax( (long) rSearchColor.GetBlue() - nTol, 0, 255 ); in Replace() 1706 pMinR[ i ] = MinMax( (long) rCol.GetRed() - nTol, 0, 255 ); in Replace() 1707 pMaxR[ i ] = MinMax( (long) rCol.GetRed() + nTol, 0, 255 ); in Replace() 1708 pMinG[ i ] = MinMax( (long) rCol.GetGreen() - nTol, 0, 255 ); in Replace() 1709 pMaxG[ i ] = MinMax( (long) rCol.GetGreen() + nTol, 0, 255 ); in Replace() 1710 pMinB[ i ] = MinMax( (long) rCol.GetBlue() - nTol, 0, 255 ); in Replace() [all …]
|
H A D | bitmap3.cxx | 47 nBErr = MinMax( nTemp, 0, 255 ); \ 50 nGErr = MinMax( nTemp, 0, 255 ); \ 53 nRErr = MinMax( nTemp, 0, 255 ); \ 1213 pLutInt[ nX ] = MinMax( (long) fTemp, 0, nTemp ); in ImplScaleInterpolate() 1297 pLutInt[ nY ] = MinMax( (long) fTemp, 0, nTemp ); in ImplScaleInterpolate() 2222 const sal_uInt32 aPixelIndex(MinMax(j, 0, aSourceSize - 1)); in ImplCalculateContributions() 3388 fM = 128.0 / ( 128.0 - 1.27 * MinMax( nContrastPercent, 0L, 100L ) ); in Adjust() 3390 fM = ( 128.0 + 1.27 * MinMax( nContrastPercent, -100L, 0L ) ) / 128.0; in Adjust() 3407 cMapR[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fROff ), 0L, 255L ); in Adjust() 3408 cMapG[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fGOff ), 0L, 255L ); in Adjust() [all …]
|
H A D | gdimtf.cxx | 46 #define GAMMA( _def_cVal, _def_InvGamma ) ((sal_uInt8)MinMax(FRound(pow( _def_cVal/255.0,_def_InvGa… 2327 fM = 128.0 / ( 128.0 - 1.27 * MinMax( nContrastPercent, 0L, 100L ) ); in Adjust() 2329 fM = ( 128.0 + 1.27 * MinMax( nContrastPercent, -100L, 0L ) ) / 128.0; in Adjust() 2332 fOff = MinMax( nLuminancePercent, -100L, 100L ) * 2.55 + 128.0 - fM * 128.0; in Adjust() 2346 aColParam.pMapR[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fROff ), 0L, 255L ); in Adjust() 2347 aColParam.pMapG[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fGOff ), 0L, 255L ); in Adjust() 2348 aColParam.pMapB[ nX ] = (sal_uInt8) MinMax( FRound( nX * fM + fBOff ), 0L, 255L ); in Adjust()
|
H A D | bitmap4.cxx | 204 pWriteAcc->SetPixel( nY, nX, BitmapColor( (sal_uInt8) MinMax( nSumR / nDivisor, 0, 255 ), in ImplConvolute3() 205 (sal_uInt8) MinMax( nSumG / nDivisor, 0, 255 ), in ImplConvolute3() 206 (sal_uInt8) MinMax( nSumB / nDivisor, 0, 255 ) ) ); in ImplConvolute3()
|
H A D | outdev6.cxx | 469 … const sal_uInt8 cTrans = (sal_uInt8) MinMax( FRound( nTransparencePercent * 2.55 ), 0, 255 ); in DrawTransparent()
|
/trunk/main/vcl/inc/vcl/ |
H A D | salbtype.hxx | 475 mcBlueOrIndex = (sal_uInt8) MinMax( (long) mcBlueOrIndex + cGreyInc, 0L, 255L ); in IncreaseLuminance() 476 mcGreen = (sal_uInt8) MinMax( (long) mcGreen + cGreyInc, 0L, 255L ); in IncreaseLuminance() 477 mcRed = (sal_uInt8) MinMax( (long) mcRed + cGreyInc, 0L, 255L ); in IncreaseLuminance() 487 mcBlueOrIndex = (sal_uInt8) MinMax( (long) mcBlueOrIndex - cGreyDec, 0L, 255L ); in DecreaseLuminance() 488 mcGreen = (sal_uInt8) MinMax( (long) mcGreen - cGreyDec, 0L, 255L ); in DecreaseLuminance() 489 mcRed = (sal_uInt8) MinMax( (long) mcRed - cGreyDec, 0L, 255L ); in DecreaseLuminance()
|
/trunk/main/filter/source/graphicfilter/ipsd/ |
H A D | ipsd.cxx | 656 sal_uInt8 cR = (sal_uInt8) MinMax( aBitmapColor.GetRed() - nDAT, 0L, 255L ); in ImplReadBody() 657 sal_uInt8 cG = (sal_uInt8) MinMax( aBitmapColor.GetGreen() - nDAT, 0L, 255L ); in ImplReadBody() 658 sal_uInt8 cB = (sal_uInt8) MinMax( aBitmapColor.GetBlue() - nDAT, 0L, 255L ); in ImplReadBody()
|
/trunk/main/tools/inc/tools/ |
H A D | gen.hxx | 37 inline long MinMax( long nVal, long nMin, long nMax ); 45 inline long MinMax( long nVal, long nMin, long nMax ) in MinMax() function
|
/trunk/main/filter/source/flash/ |
H A D | swfwriter1.cxx | 1258 …aColor.SetTransparency( sal::static_int_cast<sal_uInt8>( MinMax( (long int)( rStroke.getTransparen… in Impl_writeStroke() 1288 …aColor.SetTransparency( sal::static_int_cast<sal_uInt8>( MinMax( (long int)( rFilling.getTranspare… in Impl_writeFilling() 1610 sal_uInt8 nTransparence = (sal_uInt8) MinMax( FRound( pA->GetTransparence() * 2.55 ), 0, 255 ); in Impl_writeActions() 1644 mnGlobalTransparency = (sal_uInt8)MinMax( nLuminance, 0, 0xff ); in Impl_writeActions()
|
/trunk/main/svtools/source/graphic/ |
H A D | grfmgr2.cxx | 551 … pMapFX[ nX ] = (long) ( ( fTmp - ( pMapIX[ nX ] = MinMax( (long) fTmp, 0, nTmp ) ) ) * 1048576. ); in ImplCreateOutput() 562 … pMapFY[ nY ] = (long) ( ( fTmp - ( pMapIY[ nY ] = MinMax( (long) fTmp, 0, nTmp ) ) ) * 1048576. ); in ImplCreateOutput() 580 pMapIX[ nX ] = MinMax( (long) fTmp, 0, nTmp ); in ImplCreateOutput() 593 pMapIY[ nY ] = MinMax( (long) fTmp, 0, nTmp ); in ImplCreateOutput()
|
/trunk/main/tools/source/generic/ |
H A D | poly.cxx | 505 nPoints = (sal_uInt16) MinMax( nPoints, 32, 256 ); in Polygon() 564 nPoints = (sal_uInt16) MinMax( nPoints, 32, 256 ); in Polygon()
|