public static IReadOnlyPixelBuffer <TPixel> ProjectRows <TPixel>( this IReadOnlyPixelBuffer <TPixel> pixels, PixelBufferProjectorCallback <TPixel> projector) where TPixel : unmanaged, IPixel { return(ProjectRows(pixels, ImagingConfig.Default, projector)); }
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))); }
public static IReadOnlyPixelBuffer ProjectRows(this IReadOnlyPixelBuffer pixels, PixelBufferProjectorCallback projector) { return(ProjectRows(pixels, ImagingConfig.Default, projector)); }