public static IReadOnlyPixelBuffer ProjectRows(this IReadOnlyPixelBuffer pixels, ImagingConfig imagingConfig, PixelBufferProjectorCallback projector) { if (projector == null) { throw new ArgumentNullException(nameof(projector)); } return(projector.Invoke(new ReadOnlyPixelBufferContext(imagingConfig, pixels))); }
public static IReadOnlyPixelBuffer <TPixel> ProjectRows <TPixel>( this IReadOnlyPixelBuffer <TPixel> pixels, ImagingConfig imagingConfig, PixelBufferProjectorCallback <TPixel> projector) where TPixel : unmanaged, IPixel { if (projector == null) { throw new ArgumentNullException(nameof(projector)); } return(projector.Invoke(new ReadOnlyPixelBufferContext <TPixel>(imagingConfig, pixels))); }