[f-spot] Remove a couple methods and use default parameters instead
- From: Stephen Shaw <sshaw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Remove a couple methods and use default parameters instead
- Date: Thu, 30 May 2013 05:06:05 +0000 (UTC)
commit 9bb4558c558c0c35d1281b93e150e634dc5f2327
Author: Stephen Shaw <sshaw decriptor com>
Date: Wed May 29 23:01:32 2013 -0600
Remove a couple methods and use default parameters instead
src/Clients/MainApp/PixbufUtils.cs | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/Clients/MainApp/PixbufUtils.cs b/src/Clients/MainApp/PixbufUtils.cs
index 52c26da..52e8779 100644
--- a/src/Clients/MainApp/PixbufUtils.cs
+++ b/src/Clients/MainApp/PixbufUtils.cs
@@ -369,13 +369,8 @@ public static class PixbufUtils
return newsurf;
}
- public unsafe static Gdk.Pixbuf RemoveRedeye (Gdk.Pixbuf src, Gdk.Rectangle area)
- {
- return RemoveRedeye (src, area, -15);
- }
-
//threshold, factors and comparisons borrowed from the gimp plugin 'redeye.c' by Robert Merkel
- public unsafe static Gdk.Pixbuf RemoveRedeye (Gdk.Pixbuf src, Gdk.Rectangle area, int threshold)
+ public unsafe static Gdk.Pixbuf RemoveRedeye (Gdk.Pixbuf src, Gdk.Rectangle area, int threshold = -15)
{
Gdk.Pixbuf copy = src.Copy ();
Gdk.Pixbuf selection = new Gdk.Pixbuf (copy, area.X, area.Y, area.Width, area.Height);
@@ -529,12 +524,7 @@ public static class PixbufUtils
return ret;
}
- public static void CreateDerivedVersion (SafeUri source, SafeUri destination)
- {
- CreateDerivedVersion (source, destination, 95);
- }
-
- public static void CreateDerivedVersion (SafeUri source, SafeUri destination, uint jpeg_quality)
+ public static void CreateDerivedVersion (SafeUri source, SafeUri destination, uint jpeg_quality = 95)
{
if (source.GetExtension () == destination.GetExtension ()) {
// Simple copy will do!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]