public static Image ProcessRows( this IReadOnlyPixelRows pixels, ImagingConfig imagingConfig, PixelRowsProcessorCallback processor) { if (processor == null) { throw new ArgumentNullException(nameof(processor)); } return(processor.Invoke(new ReadOnlyPixelRowsContext(imagingConfig, pixels))); }
public static Image <TPixel> ProcessRows <TPixel>( this IReadOnlyPixelRows <TPixel> pixels, ImagingConfig imagingConfig, PixelRowsProcessorCallback <TPixel> processor) where TPixel : unmanaged, IPixel <TPixel> { if (processor == null) { throw new ArgumentNullException(nameof(processor)); } return(processor.Invoke(new ReadOnlyPixelRowsContext <TPixel>(imagingConfig, pixels))); }