/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/Image.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coretypes/implementation/Image.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib/core/coretypes/implementation/Image.cs	2010/07/15 14:22:00	72
+++ trunk/gr2lib/core/coretypes/implementation/Image.cs	2010/07/15 21:50:56	79
@@ -2,14 +2,19 @@
 using System.Collections.Generic;
 using System.Text;
 using gr2lib.core.helpers;
-
+using gr2lib.core.interfaces;
 namespace gr2lib.core.coretypes.implementation
 {
-    public class Image
+    public class Image : IImage
     {
-        public List<MIPLevel> MIPLevels;
+        
+
 
-        public IntPtr NativePointer;
+        public Image()
+        {
+            this.MIPLevels = new List<MIPLevel>();
+            this.NativePointer = IntPtr.Zero;
+        }
 
         internal static Image ReadFromMemory(IntPtr pointer)
         {
@@ -36,5 +41,15 @@
             }
             return managed;
         }
+
+        #region INativePointer Members
+        private IntPtr _NativePointer;
+        public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
+        #endregion
+
+        #region IImage Members
+        private List<MIPLevel> _MIPLevels;
+        public List<MIPLevel> MIPLevels { get { return _MIPLevels; } set { _MIPLevels = value; } }
+        #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22