Smrf.NodeXL.Visualization.Wpf.VertexDrawer.GetEffectForDropShadow C# (CSharp) Method

GetEffectForDropShadow() protected method

protected GetEffectForDropShadow ( GraphDrawingContext oGraphDrawingContext, Double dShadowDepth, Double dOpacity ) : System.Windows.Media.Effects.Effect
oGraphDrawingContext GraphDrawingContext
dShadowDepth Double
dOpacity Double
return System.Windows.Media.Effects.Effect
    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) );
    }