Ejemplo n.º 1
0
 public static ImageFilter CreateBlendMode(BlendMode mode, ImageFilter background, ImageFilter?foreground = null, CropRect?cropRect = null)
 {
     return(new BlendModeImageFilter
     {
         Mode = mode,
         Background = background,
         Foreground = foreground,
         CropRect = cropRect
     });
 }
Ejemplo n.º 2
0
 public static ImageFilter CreateDisplacementMapEffect(ColorChannel xChannelSelector, ColorChannel yChannelSelector, float scale, ImageFilter displacement, ImageFilter?input = null, CropRect?cropRect = null)
 {
     return(new DisplacementMapEffectImageFilter
     {
         XChannelSelector = xChannelSelector,
         YChannelSelector = yChannelSelector,
         Scale = scale,
         Displacement = displacement,
         Input = input,
         CropRect = cropRect
     });
 }
Ejemplo n.º 3
0
 public static ImageFilter CreateArithmetic(float k1, float k2, float k3, float k4, bool enforcePMColor, ImageFilter background, ImageFilter?foreground = null, CropRect?cropRect = null)
 {
     return(new ArithmeticImageFilter
     {
         K1 = k1,
         K2 = k2,
         K3 = k3,
         K4 = k4,
         EforcePMColor = enforcePMColor,
         Background = background,
         Foreground = foreground,
         CropRect = cropRect
     });
 }