Home
last modified time | relevance | path

Searched refs:MinMax (Results 1 – 11 of 11) sorted by relevance

/trunk/main/vcl/source/gdi/
H A Dbitmap.cxx1306 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()
1308 const long nMinG = MinMax( (long) rTransColor.GetGreen() - nTol, 0, 255 ); in CreateMask()
1309 const long nMaxG = MinMax( (long) rTransColor.GetGreen() + nTol, 0, 255 ); in CreateMask()
1310 const long nMinB = MinMax( (long) rTransColor.GetBlue() - nTol, 0, 255 ); in CreateMask()
1311 const long nMaxB = MinMax( (long) rTransColor.GetBlue() + 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()
1622 const long nMinG = MinMax( (long) rSearchColor.GetGreen() - nTol, 0, 255 ); in Replace()
1623 const long nMaxG = MinMax( (long) rSearchColor.GetGreen() + nTol, 0, 255 ); in Replace()
[all …]
H A Dbitmap3.cxx42 #define GAMMA( _def_cVal, _def_InvGamma ) ((sal_uInt8)MinMax(FRound(pow( _def_cVal/255.0,_def_Inv…
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()
1415 … pMapFX[ nX ] = (long) ( ( fTemp - ( pMapIX[ nX ] = MinMax( (long) fTemp, 0, nTemp ) ) ) * 128. ); in ImplScaleSuper()
1426 … pMapFY[ nY ] = (long) ( ( fTemp - ( pMapIY[ nY ] = MinMax( (long) fTemp, 0, nTemp ) ) ) * 128. ); in ImplScaleSuper()
2222 const sal_uInt32 aPixelIndex(MinMax(j, 0, aSourceSize - 1)); in ImplCalculateContributions()
2301 … static_cast< sal_uInt8 >(MinMax(static_cast< sal_Int32 >(aValueRed / aSum), 0, 255)), in ImplScaleConvolutionHor()
[all …]
H A Dgdimtf.cxx46 #define GAMMA( _def_cVal, _def_InvGamma ) ((sal_uInt8)MinMax(FRound(pow( _def_cVal/255.0,_def_Inv…
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 Dbitmap4.cxx204 … 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 Doutdev6.cxx469 … const sal_uInt8 cTrans = (sal_uInt8) MinMax( FRound( nTransparencePercent * 2.55 ), 0, 255 ); in DrawTransparent()
/trunk/main/vcl/inc/vcl/
H A Dsalbtype.hxx475 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 Dipsd.cxx656 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 Dgen.hxx37 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 Dswfwriter1.cxx1258 …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 Dgrfmgr2.cxx551 … 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 Dpoly.cxx505 nPoints = (sal_uInt16) MinMax( nPoints, 32, 256 ); in Polygon()
564 nPoints = (sal_uInt16) MinMax( nPoints, 32, 256 ); in Polygon()