[f-spot: 5/40] report the PixbufOrientation



commit faa95da7ea92bc79103f41c45f60b92f38715af7
Author: Stephane Delcroix <stephane delcroix org>
Date:   Thu Jun 18 15:58:39 2009 +0200

    report the PixbufOrientation

 src/ImageLoader.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ImageLoader.cs b/src/ImageLoader.cs
index 2d699b8..a6b8c42 100644
--- a/src/ImageLoader.cs
+++ b/src/ImageLoader.cs
@@ -54,6 +54,7 @@ namespace FSpot {
 		{
 			using (ImageFile image_file = ImageFile.Create (uri)) {
 				image_stream = image_file.PixbufStream ();
+				orientation = image_file.Orientation;
 			}
 			image_stream.BeginRead (buffer, 0, count, HandleReadDone, null);
 			loading = true;
@@ -73,7 +74,7 @@ namespace FSpot {
 			get { return prepared; }
 		}
 
-		PixbufOrientation pixbuf_orientation;
+		PixbufOrientation pixbuf_orientation = PixbufOrientation.TopLeft;
 		public PixbufOrientation PixbufOrientation {
 			get { return pixbuf_orientation; }
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]