コード例 #1
0
 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)));
 }
コード例 #2
0
 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)));
 }