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