GetEffectForDropShadow
(
GraphDrawingContext oGraphDrawingContext,
Double dShadowDepth,
Double dOpacity
)
{
Debug.Assert(oGraphDrawingContext != null);
Debug.Assert(dShadowDepth >= 0.0);
Debug.Assert(dOpacity >= 0.0);
Debug.Assert(dOpacity <= 1.0);
AssertValid();
Color oColor = WpfGraphicsUtil.GetContrastingColor(
oGraphDrawingContext.BackColor);
return ( GetDropShadowEffect(oColor, dShadowDepth, 5.0, dOpacity) );
}