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 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));
 }
Esempio n. 3
0
 public CropRows(IPixelRows rows, Rectangle sourceRectangle) : base(rows, sourceRectangle)
 {
 }
 public PixelRowsContext(IImagingConfig imagingConfig, IPixelRows pixels) :
     base(imagingConfig, pixels)
 {
 }
 public static void MutateRows <TPixel>(
     this IPixelRows <TPixel> pixels, PixelRowsMutatorCallback <TPixel> mutator)
     where TPixel : unmanaged, IPixel
 {
     MutateRows(pixels, ImagingConfig.Default, mutator);
 }
 public static void MutateRows(this IPixelRows pixels,
                               PixelRowsMutatorCallback mutator)
 {
     MutateRows(pixels, ImagingConfig.Default, mutator);
 }