public void ApplyHueFilter <TPixel>(TestImageProvider <TPixel> provider, int value) where TPixel : struct, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Hue(value), value); }
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); }
public void ApplyInvertFilter <TPixel>(TestImageProvider <TPixel> provider) where TPixel : struct, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Invert()); }
public void ApplyGrayscaleFilter <TPixel>(TestImageProvider <TPixel> provider, GrayscaleMode value) where TPixel : struct, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Grayscale(value), value); }
public void ApplyBrightnessFilter <TPixel>(TestImageProvider <TPixel> provider, float value) where TPixel : unmanaged, IPixel <TPixel> => provider.RunValidatingProcessorTest(ctx => ctx.Brightness(value), value, this.imageComparer);
public void ApplyBlackWhiteFilter <TPixel>(TestImageProvider <TPixel> provider) where TPixel : unmanaged, IPixel <TPixel> { provider.RunValidatingProcessorTest(ctx => ctx.BlackWhite(), comparer: ImageComparer.TolerantPercentage(0.002f)); }
public void EntropyCrop <TPixel>(TestImageProvider <TPixel> provider, float value) where TPixel : unmanaged, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.EntropyCrop(value), value, appendPixelTypeToFileName: false); }
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)); }
public void Rotate_WithRotateTypeEnum <TPixel>(TestImageProvider <TPixel> provider, RotateMode value) where TPixel : unmanaged, IPixel <TPixel> { provider.RunValidatingProcessorTest(ctx => ctx.Rotate(value), value, appendPixelTypeToFileName: false); }
public void ApplyKodachromeFilter <TPixel>(TestImageProvider <TPixel> provider) where TPixel : unmanaged, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Kodachrome()); }
public void Rotate_WithAngle <TPixel>(TestImageProvider <TPixel> provider, float value) where TPixel : struct, IPixel <TPixel> { provider.RunValidatingProcessorTest(ctx => ctx.Rotate(value), value, appendPixelTypeToFileName: false); }
public void ApplyAlphaFilter <TPixel>(TestImageProvider <TPixel> provider, float value) where TPixel : unmanaged, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Opacity(value), value); }
public void FullImage <TPixel>(TestImageProvider <TPixel> provider, int value) where TPixel : unmanaged, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Pixelate(value), value, appendPixelTypeToFileName: false); }
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()); }
public void ApplySaturationFilter <TPixel>(TestImageProvider <TPixel> provider, float value) where TPixel : unmanaged, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Saturate(value), value); }
public void ApplyContrastFilter <TPixel>(TestImageProvider <TPixel> provider, float value) where TPixel : struct, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Contrast(value), value); }
public void ApplyLomographFilter <TPixel>(TestImageProvider <TPixel> provider) where TPixel : struct, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Lomograph()); }
public void ApplySepiaFilter <TPixel>(TestImageProvider <TPixel> provider) where TPixel : unmanaged, IPixel <TPixel> { provider.RunValidatingProcessorTest(x => x.Sepia()); }
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); }