public GlowEffect() { EffectData = new GlowData (); blurEffect = new GaussianBlurEffect (); contrastEffect = new BrightnessContrastEffect (); screenBlendOp = new UserBlendOps.ScreenBlendOp (); }
public SoftenPortraitEffect () { EffectData = new SoftenPortraitData (); blurEffect = new GaussianBlurEffect (); bacAdjustment = new BrightnessContrastEffect (); desaturateOp = new UnaryPixelOps.Desaturate (); overlayOp = new UserBlendOps.OverlayBlendOp (); }
public PencilSketchEffect() { EffectData = new PencilSketchData (); blurEffect = new GaussianBlurEffect (); desaturateOp = new UnaryPixelOps.Desaturate (); invertEffect = new InvertColorsEffect (); bacAdjustment = new BrightnessContrastEffect (); colorDodgeOp = new UserBlendOps.ColorDodgeBlendOp (); }
public void BrightnessContrastEffect2() { var src = GetSourceImage("input.png"); var effect = new BrightnessContrastEffect(80, 20); effect.Render(src); Compare(src, "brightnesscontrast2.png"); }
public void Ctor_Reader() { var reader = new MetafileReader(new byte[] { /* Brightness Level */ 0x01, 0x00, 0x00, 0x00, /* Contrast Level */ 0x02, 0x00, 0x00, 0x00 }, 0); var effect = new BrightnessContrastEffect(reader); Assert.Equal(1, effect.BrightnessLevel); Assert.Equal(2, effect.ContrastLevel); Assert.Equal(8u, effect.Size); Assert.Equal(new Guid("{D3A1DBE1-8EC4-4C17-9F4C-EA97AD1C343D}"), effect.Identifier); }