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 void MutateRows(this IPixelRows pixels, ImagingConfig imagingConfig, PixelRowsMutatorCallback mutator) { if (mutator == null) { throw new ArgumentNullException(nameof(mutator)); } mutator.Invoke(new PixelRowsContext(imagingConfig, pixels)); }
public static Image <TPixel> ProcessBuffer <TPixel>(this IReadOnlyPixelBuffer <TPixel> pixels, ImagingConfig imagingConfig, PixelBufferProcessorCallback <TPixel> processor) where TPixel : unmanaged, IPixel <TPixel> { if (processor == null) { throw new ArgumentNullException(nameof(processor)); } return(processor.Invoke(new ReadOnlyPixelBufferContext <TPixel>(imagingConfig, pixels))); }
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 void MutateRows <TPixel>( this IPixelRows <TPixel> pixels, ImagingConfig imagingConfig, PixelRowsMutatorCallback <TPixel> mutator) where TPixel : unmanaged, IPixel { if (mutator == null) { throw new ArgumentNullException(nameof(mutator)); } mutator.Invoke(new PixelRowsContext <TPixel>(imagingConfig, pixels)); }
public static IReadOnlyPixelRows <TPixel> ProjectRows <TPixel>( this IReadOnlyPixelRows <TPixel> pixels, ImagingConfig imagingConfig, PixelRowsProjectorCallback <TPixel> projector) where TPixel : unmanaged, IPixel { if (projector == null) { throw new ArgumentNullException(nameof(projector)); } return(projector.Invoke(new ReadOnlyPixelRowsContext <TPixel>(imagingConfig, pixels))); }