"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Pinta.Effects/Effects/CloudsEffect.cs" between
pinta-1.7.tar.gz and pinta-1.7.1.tar.gz

About: Pinta is a powerful image drawing and editing program (modeled after Paint.NET).

CloudsEffect.cs  (pinta-1.7):CloudsEffect.cs  (pinta-1.7.1)
skipping to change at line 178 skipping to change at line 178
*ptr = ColorBgra.Lerp(colorFrom, colorTo, (val + 1) / 2); *ptr = ColorBgra.Lerp(colorFrom, colorTo, (val + 1) / 2);
++ptr; ++ptr;
} }
} }
} }
protected override void Render (ImageSurface src, ImageSurface ds t, Gdk.Rectangle roi) protected override void Render (ImageSurface src, ImageSurface ds t, Gdk.Rectangle roi)
{ {
var r = roi.ToCairoRectangle (); var r = roi.ToCairoRectangle ();
using (var temp = new ImageSurface (Format.Argb32, roi.Width, roi.He ight)) { using (var temp = CairoExtensions.CreateImageSurface (Format.Argb32, roi.Width, roi.Height)) {
RenderClouds (temp, roi, Data.Scale, (byte)(Data.Seed ^ instance Seed), Data.Power / 100.0, RenderClouds (temp, roi, Data.Scale, (byte)(Data.Seed ^ instance Seed), Data.Power / 100.0,
PintaCore.Palette.PrimaryColor.ToColorBgra (), Pin taCore.Palette.SecondaryColor.ToColorBgra ()); PintaCore.Palette.PrimaryColor.ToColorBgra (), Pin taCore.Palette.SecondaryColor.ToColorBgra ());
temp.MarkDirty (); temp.MarkDirty ();
// Have to lock because effect renderer is multithreaded // Have to lock because effect renderer is multithreaded
lock (render_lock) { lock (render_lock) {
using (var g = new Context (dst)) { using (var g = new Context (dst)) {
// - Clear any previous render from the destination // - Clear any previous render from the destination
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)