Example #1
0
 public void ApplyHueFilter <TPixel>(TestImageProvider <TPixel> provider, int value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Hue(value), value);
 }
Example #2
0
 public void Resize_IsNotBoundToSinglePixelType <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Resize(x.GetCurrentSize() / 2), comparer: ValidatorComparer);
 }
 public void ApplyBrightnessFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.Brightness(value), value);
 }
Example #4
0
 public void ApplyInvertFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Invert());
 }
Example #5
0
 public void ApplyGrayscaleFilter <TPixel>(TestImageProvider <TPixel> provider, GrayscaleMode value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Grayscale(value), value);
 }
Example #6
0
 public void ApplyBrightnessFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : unmanaged, IPixel <TPixel> => provider.RunValidatingProcessorTest(ctx => ctx.Brightness(value), value, this.imageComparer);
Example #7
0
 public void ApplyBlackWhiteFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.BlackWhite(), comparer: ImageComparer.TolerantPercentage(0.002f));
 }
Example #8
0
 public void EntropyCrop <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.EntropyCrop(value), value, appendPixelTypeToFileName: false);
 }
Example #9
0
 public void ApplyColorBlindnessFilter <TPixel>(TestImageProvider <TPixel> provider, ColorBlindnessMode colorBlindness)
     where TPixel : unmanaged, IPixel <TPixel> => provider.RunValidatingProcessorTest(x => x.ColorBlindness(colorBlindness), colorBlindness.ToString(), this.imageComparer);
 public void FullImage <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.BackgroundColor(Color.HotPink));
 }
Example #11
0
 public void Rotate_WithRotateTypeEnum <TPixel>(TestImageProvider <TPixel> provider, RotateMode value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.Rotate(value), value, appendPixelTypeToFileName: false);
 }
Example #12
0
 public void ApplyKodachromeFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Kodachrome());
 }
Example #13
0
 public void Rotate_WithAngle <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.Rotate(value), value, appendPixelTypeToFileName: false);
 }
Example #14
0
 public void ApplyAlphaFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Opacity(value), value);
 }
Example #15
0
 public void FullImage <TPixel>(TestImageProvider <TPixel> provider, int value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Pixelate(value), value, appendPixelTypeToFileName: false);
 }
Example #16
0
 public void ApplyBlackWhiteFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.BlackWhite());
 }
 public void ApplyColorBlindnessFilter <TPixel>(TestImageProvider <TPixel> provider, ColorBlindnessMode colorBlindness)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.ColorBlindness(colorBlindness), colorBlindness.ToString());
 }
Example #18
0
 public void ApplySaturationFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Saturate(value), value);
 }
Example #19
0
 public void ApplyContrastFilter <TPixel>(TestImageProvider <TPixel> provider, float value)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Contrast(value), value);
 }
Example #20
0
 public void ApplyLomographFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Lomograph());
 }
Example #21
0
 public void ApplySepiaFilter <TPixel>(TestImageProvider <TPixel> provider)
     where TPixel : unmanaged, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(x => x.Sepia());
 }
Example #22
0
 public void Skew_IsNotBoundToSinglePixelType <TPixel>(TestImageProvider <TPixel> provider, float x, float y)
     where TPixel : struct, IPixel <TPixel>
 {
     provider.RunValidatingProcessorTest(ctx => ctx.Skew(x, y), $"{x}_{y}", ValidatorComparer);
 }