Transform2DEffect CreateShadowEffect(IGraphicsEffectSource source, ShadowParam param) { return(new Transform2DEffect { Source = new Transform2DEffect { Source = new ShadowEffect { BlurAmount = param.Blur, ShadowColor = Color.FromArgb(param.Alpha, 0, 0, 0), Source = source }, }, }); }
Transform2DEffect CreateShadowEffect(IGraphicsEffectSource source, ShadowParam param) { return new Transform2DEffect { Source = new Transform2DEffect { Source = new ShadowEffect { BlurAmount = param.Blur, ShadowColor = Color.FromArgb(param.Alpha, 0, 0, 0), Source = source }, }, }; }