"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Pinta.Docking/Extensions/GdkExtensions.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).

GdkExtensions.cs  (pinta-1.7):GdkExtensions.cs  (pinta-1.7.1)
skipping to change at line 40 skipping to change at line 40
using System.Reflection.Emit; using System.Reflection.Emit;
using System.Reflection; using System.Reflection;
using Gdk; using Gdk;
namespace Pinta.Docking namespace Pinta.Docking
{ {
static class GdkExtensions static class GdkExtensions
{ {
public static Gdk.Pixbuf WithAlpha (this Gdk.Pixbuf image, double opacit y) public static Gdk.Pixbuf WithAlpha (this Gdk.Pixbuf image, double opacit y)
{ {
using (var surf = new Cairo.ImageSurface (Cairo.Format.Argb32, image .Width, image.Height)) { using (var surf = Pinta.Core.CairoExtensions.CreateImageSurface (Cai ro.Format.Argb32, image.Width, image.Height)) {
using (var g = new Cairo.Context (surf)) { using (var g = new Cairo.Context (surf)) {
CairoHelper.SetSourcePixbuf (g, image, 0, 0); CairoHelper.SetSourcePixbuf (g, image, 0, 0);
g.PaintWithAlpha (opacity); g.PaintWithAlpha (opacity);
} }
return new Gdk.Pixbuf (surf.Data, true, 8, surf.Width, surf.Heig ht, surf.Stride); return new Gdk.Pixbuf (surf.Data, true, 8, surf.Width, surf.Heig ht, surf.Stride);
} }
} }
public static Gdk.Pixbuf WithBoxSize (this Gdk.Pixbuf image, int size) public static Gdk.Pixbuf WithBoxSize (this Gdk.Pixbuf image, int size)
 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)