Lines Matching refs:nSteps
307 long nSteps = Min( nStepCount, nMaxColorSteps ); in ImplDrawLinearGradient() local
308 if ( nSteps < 3) in ImplDrawLinearGradient()
310 nSteps = 3; in ImplDrawLinearGradient()
313 double fScanInc = ((double)aRect.GetHeight()) / (double) nSteps; in ImplDrawLinearGradient()
318 const double fStepsMinus1 = ((double)nSteps) - 1.0; in ImplDrawLinearGradient()
322 nSteps -= 1; // draw middle polygons as one polygon after loop to avoid gap in ImplDrawLinearGradient()
324 for ( long i = 0; i < nSteps; i++ ) in ImplDrawLinearGradient()
377 aRect.Top() = (long)( fGradientLine + ((double)nSteps) * fScanInc ); in ImplDrawLinearGradient()
378 aRect.Bottom() = (long)( fMirrorGradientLine - ((double) nSteps) * fScanInc ); in ImplDrawLinearGradient()
505 long nSteps = Max( nStepCount, 2L ); in ImplDrawComplexGradient() local
513 if ( nCalcSteps < nSteps ) in ImplDrawComplexGradient()
514 nSteps = nCalcSteps; in ImplDrawComplexGradient()
515 if ( !nSteps ) in ImplDrawComplexGradient()
516 nSteps = 1; in ImplDrawComplexGradient()
524 double fScanInc = (double) nMinRect / (double) nSteps * 0.5; in ImplDrawComplexGradient()
552 for( long i = 1; i < nSteps; i++ ) in ImplDrawComplexGradient()
572 nRed = ImplGetGradientColorValue( nStartRed + ( ( nRedSteps * nStepIndex ) / nSteps ) ); in ImplDrawComplexGradient()
573 nGreen = ImplGetGradientColorValue( nStartGreen + ( ( nGreenSteps * nStepIndex ) / nSteps ) ); in ImplDrawComplexGradient()
574 nBlue = ImplGetGradientColorValue( nStartBlue + ( ( nBlueSteps * nStepIndex ) / nSteps ) ); in ImplDrawComplexGradient()