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))); }
private static void _ApplyCommonEffect <TPixel>(Image <TPixel> img, CommonEffect <TPixel> effect) where TPixel : struct, IPixel <TPixel> { effect.Mutate(img); }