Exemplo n.º 1
0
 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
             },
         },
     });
 }
Exemplo n.º 2
0
 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
             },
         },
     };
 }