コード例 #1
0
 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));
 }
コード例 #2
0
 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));
 }
コード例 #3
0
 public static void MutateRows <TPixel>(
     this IPixelRows <TPixel> pixels, PixelRowsMutatorCallback <TPixel> mutator)
     where TPixel : unmanaged, IPixel
 {
     MutateRows(pixels, ImagingConfig.Default, mutator);
 }
コード例 #4
0
 public static void MutateRows(this IPixelRows pixels,
                               PixelRowsMutatorCallback mutator)
 {
     MutateRows(pixels, ImagingConfig.Default, mutator);
 }