public static Se.BitmapEffectGroup ToMediaBitmapEffect(this Wg.Effects input) { Se.BitmapEffectGroup output = new Se.BitmapEffectGroup(); if (input.HasBlurEffect) { output.Children.Add(input.Blur.ToMediaBitmapEffect()); } if (input.HasShadowEffect) { output.Children.Add(input.Shadow.ToMediaBitmapEffect()); } return(output); }
//========================================================================== public BitmapEffect ToBitmapEffect() { if(Document.Options.IgnoreEffects) return null; BitmapEffectGroup bitmap_effect_group = new BitmapEffectGroup(); foreach(SvgFilterEffectBaseElement filter_effect in FilterEffects) { BitmapEffect bitmap_effect = filter_effect.ToBitmapEffect(); if(bitmap_effect != null) bitmap_effect_group.Children.Add(bitmap_effect); } if(bitmap_effect_group.Children.Count == 0) return null; return bitmap_effect_group; }