"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Pinta.Tools/Tools/EraserTool.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).

EraserTool.cs  (pinta-1.7):EraserTool.cs  (pinta-1.7.1)
skipping to change at line 76 skipping to change at line 76
lut_factor [dy][dx] = 255; lut_factor [dy][dx] = 255;
else else
lut_factor [dy][dx] = (byte)(255.0 - Math.Cos (Math. Sqrt (d) * Math.PI / 2.0) * 255.0); lut_factor [dy][dx] = (byte)(255.0 - Math.Cos (Math. Sqrt (d) * Math.PI / 2.0) * 255.0);
} }
} }
} }
} }
private ImageSurface copySurfacePart(ImageSurface surf, Gdk.Rectangle de st_rect) private ImageSurface copySurfacePart(ImageSurface surf, Gdk.Rectangle de st_rect)
{ {
ImageSurface tmp_surface = new ImageSurface (Format.Argb32, dest_rec t.Width, dest_rect.Height); ImageSurface tmp_surface = CairoExtensions.CreateImageSurface (Forma t.Argb32, dest_rect.Width, dest_rect.Height);
using (Context g = new Context (tmp_surface)) { using (Context g = new Context (tmp_surface)) {
g.Operator = Operator.Source; g.Operator = Operator.Source;
g.SetSourceSurface (surf, -dest_rect.Left, -dest_rect.Top); g.SetSourceSurface (surf, -dest_rect.Left, -dest_rect.Top);
g.Rectangle (new Rectangle (0, 0, dest_rect.Width, dest_rect.Hei ght)); g.Rectangle (new Rectangle (0, 0, dest_rect.Width, dest_rect.Hei ght));
g.Fill (); g.Fill ();
} }
//Flush to make sure all drawing operations are finished //Flush to make sure all drawing operations are finished
tmp_surface.Flush (); tmp_surface.Flush ();
return tmp_surface; return tmp_surface;
 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)