private void CreateEffect() { effect = new Microsoft.Graphics.Canvas.Effects.ShadowEffect() { Name = EffectName, BlurAmount = 1.5f, ShadowColor = Colors.Black, Source = new CompositionEffectSourceParameter(EffectSource) }; //Level = 1.5d; //UpdateLevel(); effectFactory = compositor.CreateEffectFactory(effect, new[] { BlurEffectPath }); }
public void OnDraw(CanvasDrawingSession session) { for (int i = 0; i < Canvas.Length; i++) { session.DrawImage(Canvas[i]); } using (var shadow = new Microsoft.Graphics.Canvas.Effects.ShadowEffect() { Source = Foreground }) { session.DrawImage(shadow); } }
private void CreateEffect() { effect = new Microsoft.Graphics.Canvas.Effects.ShadowEffect() { Name = EffectName, BlurAmount = 1.5f, ShadowColor = Colors.Black, Source = new CompositionEffectSourceParameter(EffectSource) }; //Level = 1.5d; //UpdateLevel(); effectFactory = compositor.CreateEffectFactory(effect, new[] { BlurEffectPath }); }