예제 #1
0
 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);
 }
예제 #2
0
        public static string ToSVG(this Wg.Effects input)
        {
            string output = "<filter id=\"" + input.ID + "\" x=\"-25%\" width=\"150%\" y =\"-25%\" height=\"150%\" >" + Environment.NewLine;

            if (input.HasBlurEffect)
            {
                output += input.Blur.ToSVG() + Environment.NewLine;
            }
            if (input.HasShadowEffect)
            {
                output += input.Shadow.ToSVG() + Environment.NewLine;
            }
            output += "</filter>" + Environment.NewLine;
            return(output);
        }