Blendmodes #17

merged 15 commits into from Apr 29, 2012


None yet

2 participants

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
+ 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 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 commented Apr 26, 2012

Should be done. Thanks for pointing it out!


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