Blendmodes #17

Merged
merged 15 commits into from Apr 29, 2012

Projects

None yet

2 participants

@jpobst
Contributor
jpobst commented Apr 24, 2012

Add support for layer blend modes (Layer Properties Dialog).

As part of setting up for this, I rewrote a chunk of the canvas, which should now be faster than before. Before, it did a Cairo paint to the screen for each layer, now we build all the layers onto the canvas, and paint the whole thing at once. Also removed the additional Cairo paint for the pixel grid.

@cameronwhite cameronwhite commented on the diff Apr 24, 2012
Pinta.Core/Effects/UserBlendOps.cs
+ new MultiplyBlendOp (),
+ new AdditiveBlendOp (),
+ new ColorBurnBlendOp (),
+ new ColorDodgeBlendOp (),
+ new ReflectBlendOp (),
+ new GlowBlendOp (),
+ new OverlayBlendOp (),
+ new DifferenceBlendOp (),
+ new NegationBlendOp (),
+ new LightenBlendOp (),
+ new DarkenBlendOp (),
+ new ScreenBlendOp (),
+ new XorBlendOp ()
+ };
+
+ blend_modes.Add (Catalog.GetString ("Normal"), BlendMode.Normal);
@cameronwhite
cameronwhite Apr 24, 2012 Member

I think these need to be added to the translation template? Same with the string added to the Layer Properties dialog.

@jpobst
Contributor
jpobst commented Apr 26, 2012

Should be done. Thanks for pointing it out!

@cameronwhite
Member

Thanks, looks good!

I'm going to wait until after Pinta 1.3 to merge this, since we're holding off on new features until then.

@cameronwhite cameronwhite merged commit 805afa3 into PintaProject:master Apr 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment