예제 #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
             },
         },
     });
 }
예제 #2
0
파일: Shadow.cs 프로젝트: brookshi/XPShadow
 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
             },
         },
     };
 }