"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Pinta.Gui.Widgets/Widgets/PointPickerGraphic.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).

PointPickerGraphic.cs  (pinta-1.7):PointPickerGraphic.cs  (pinta-1.7.1)
skipping to change at line 53 skipping to change at line 53
ButtonPressEvent += HandleHandleButtonPressEvent; ButtonPressEvent += HandleHandleButtonPressEvent;
ButtonReleaseEvent += HandleHandleButtonReleaseEvent; ButtonReleaseEvent += HandleHandleButtonReleaseEvent;
MotionNotifyEvent += HandleHandleMotionNotifyEvent; MotionNotifyEvent += HandleHandleMotionNotifyEvent;
} }
private void UpdateThumbnail () private void UpdateThumbnail ()
{ {
double scalex = (double)Allocation.Width / (double)PintaC ore.Workspace.ImageSize.Width; double scalex = (double)Allocation.Width / (double)PintaC ore.Workspace.ImageSize.Width;
double scaley = (double)Allocation.Height / (double)Pinta Core.Workspace.ImageSize.Height; double scaley = (double)Allocation.Height / (double)Pinta Core.Workspace.ImageSize.Height;
thumbnail = new Cairo.ImageSurface (Cairo.Format.Argb32, Allocation.Width, Allocation.Height); thumbnail = CairoExtensions.CreateImageSurface (Cairo.For mat.Argb32, Allocation.Width, Allocation.Height);
using (Cairo.Context g = new Cairo.Context (thumbnail)) { using (Cairo.Context g = new Cairo.Context (thumbnail)) {
g.Scale (scalex, scaley); g.Scale (scalex, scaley);
foreach (Layer layer in PintaCore.Layers.GetLayer sToPaint ()) { foreach (Layer layer in PintaCore.Layers.GetLayer sToPaint ()) {
layer.Draw(g); layer.Draw(g);
} }
} }
} }
protected override void OnSizeAllocated (Rectangle allocation) protected override void OnSizeAllocated (Rectangle allocation)
 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)