Example #1
0
 public static IImageProcessingContext <TPixel> ApplyCommonEffect <TPixel>(this IImageProcessingContext <TPixel> source, CommonEffect <TPixel> effect) where TPixel : struct, IPixel <TPixel>
 {
     return(source.Apply(img => _ApplyCommonEffect <TPixel>(img, effect)));
 }
Example #2
0
 private static void _ApplyCommonEffect <TPixel>(Image <TPixel> img, CommonEffect <TPixel> effect) where TPixel : struct, IPixel <TPixel>
 {
     effect.Mutate(img);
 }