Code cleaning: Changed format of various files to unix from dos.
authorRavindra <ravindra@mono-cvs.ximian.com>
Thu, 15 Jul 2004 05:53:10 +0000 (05:53 -0000)
committerRavindra <ravindra@mono-cvs.ximian.com>
Thu, 15 Jul 2004 05:53:10 +0000 (05:53 -0000)
Also, changed access of instance variables to private in
some classes.

svn path=/trunk/mcs/; revision=31166

29 files changed:
mcs/class/System.Drawing/System.Drawing.Drawing2D/ChangeLog
mcs/class/System.Drawing/System.Drawing.Drawing2D/CombineMode.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/CompostingMode.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/CompostingQuality.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/CoordinateSpace.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/DashCap.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/DashStyle.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/FillMode.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/FlushIntention.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/GraphicsContainer.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/GraphicsPath.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/GraphicsPathIterator.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/GraphicsState.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/InterpolationMode.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/LineCap.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/LineJoin.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/LinearGradientMode.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/Matrix.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/MatrixOrder.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/PathData.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/PathPointType.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/PenAlignment.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/PenType.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/PixelOffsetMode.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/QualityMode.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/RegionData.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/SmoothingMode.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/WarpMode.cs
mcs/class/System.Drawing/System.Drawing.Drawing2D/WrapMode.cs

index cc2d0e62c1999ce6c139662e5da5da2581a1de7b..c261cef42b9f6b72e318fded4a14f7b2d790cae4 100644 (file)
@@ -1,3 +1,17 @@
+2004-07-15  Ravindra  <rkumar@novell.com>
+
+       * CombineMode.cs, CompositingMode.cs, CompositingQuality.cs,
+       GraphicsPath.cs, CoordinateSpace.cs, DashCap.cs, DashStyle.cs,
+       FillMode.cs, FlushIntention.cs, GraphicsPath.cs, GraphicsState.cs,
+       InterpolationMode.cs, LineCap.cs, LineJoin.cs, LinearGradientMode.cs,
+       Matrix.cs, MatrixOrder.cs, PathPointType.cs, PenAlignment.cs,
+       PenType.cs, PixelOffsetMode.cs, QualityMode.cs, SmoothingMode.cs,
+       WarpMode.cs, WrapMode.cs: Changed format dos2unix.
+
+       * GraphicsContainer.cs, GraphicsPathIterator.cs, PathData.cs,
+       RegionData.cs:  Changed format dos2unix and changed instance variables'
+       access default/internal to private.
+
 2004-07-13  Ravindra  <rkumar@novell.com>
 
        * PathGradientBrush.cs: Removed all the private variables.
index 649cd291c16c786464287d231de0200eae88da3a..b459c5cae8a0529545d651e9fa858eb28039f6a2 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.CombineMode.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.CombineMode.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for CombineMode.\r
-       /// </summary>\r
-    [Serializable]\r
-    public enum CombineMode\r
-    {\r
-        Complement = 5,\r
-        Exclude = 4,\r
-        Intersect = 1,\r
-        Replace = 0,\r
-        Union = 2,\r
-        Xor = 3\r
-    }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for CombineMode.
+       /// </summary>
+       [Serializable]
+       public enum CombineMode {
+               Complement = 5,
+               Exclude = 4,
+               Intersect = 1,
+               Replace = 0,
+               Union = 2,
+               Xor = 3
+       }
+}
index 8c431be116dc4dff687f59b3d32f172d19b9afe0..4f7b3b31ab5029bf88464bbaeec5ee60cedc413c 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.CompostingMode.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.CompostingMode.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for CompostingMode.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum CompositingMode {\r
-               SourceCopy = 1,\r
-               SourceOver = 0\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for CompostingMode.
+       /// </summary>
+       [Serializable]
+       public enum CompositingMode {
+               SourceCopy = 1,
+               SourceOver = 0
+       }
+}
index de2c8eeba7a75e23786c3aab41795839d82b028e..cbb0de05fe61e266f8632731aa1d21f4018a0852 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.CompostingQuality.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.CompostingQuality.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for CompostingQuality.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum CompositingQuality {\r
-               AssumeLinear = 4,\r
-               Default = 0,\r
-               GammaCorrected = 3,\r
-               HighQuality = 2,\r
-               HighSpeed = 1,\r
-               Invalid = -1\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for CompostingQuality.
+       /// </summary>
+       [Serializable]
+       public enum CompositingQuality {
+               AssumeLinear = 4,
+               Default = 0,
+               GammaCorrected = 3,
+               HighQuality = 2,
+               HighSpeed = 1,
+               Invalid = -1
+       }
+}
index c1aca0ee8aa0fa1a990f12ed7ad53aff1a0f6d3f..982351f2485d8dff12b075449c65141eaf1bd596 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.CoordinateSpace.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.CoordinateSpace.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for CoordinateSpace.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum CoordinateSpace {\r
-               Device = 2,\r
-               Page = 1,\r
-               World = 0\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for CoordinateSpace.
+       /// </summary>
+       [Serializable]
+       public enum CoordinateSpace {
+               Device = 2,
+               Page = 1,
+               World = 0
+       }
+}
index af08dfb5c03ae613ae9e84ac6d8519702bd26e63..06fa73672220b99d144cc8536ddaf63028d1ae30 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.DashCap.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.DashCap.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for DashCap.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum DashCap {\r
-               Flat,\r
-               Round = 2,\r
-               Triangle = 3\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for DashCap.
+       /// </summary>
+       [Serializable]
+       public enum DashCap {
+               Flat,
+               Round = 2,
+               Triangle = 3
+       }
+}
index 5ba23a38aaaf45cfd3fddf74d7753913eefc2930..7ffff02174c297b58b9fe7bc59ed5c936db5aa8b 100644 (file)
@@ -1,11 +1,11 @@
-//\r
-// System.Drawing.Drawing2D.DashStyle.cs\r
-//\r
-// Author:\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.DashStyle.cs
+//
+// Author:
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D\r
-{\r
-       /// <summary>\r
-       /// Summary description for DashStyle.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum DashStyle {\r
-               Custom = 5,\r
-               Dash = 1,\r
-               DashDot = 3,\r
-               DashDotDot = 4,\r
-               Dot = 2,\r
-               Solid = 0\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D
+{
+       /// <summary>
+       /// Summary description for DashStyle.
+       /// </summary>
+       [Serializable]
+       public enum DashStyle {
+               Custom = 5,
+               Dash = 1,
+               DashDot = 3,
+               DashDotDot = 4,
+               Dot = 2,
+               Solid = 0
+       }
+}
index 0eae397d020ab9b3793ff3325e09b931484ba936..f9b6f9e3f107cf83690d9f44150879761f61c751 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.FillMode.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.FillMode.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for FillMode.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum FillMode {\r
-               Alternate = 0,\r
-               Winding = 1\r
-       }\r
-}\r
+
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for FillMode.
+       /// </summary>
+       [Serializable]
+       public enum FillMode {
+               Alternate = 0,
+               Winding = 1
+       }
+}
index f3b7d4242c6a5d10ef2d74ab213352c735d97ce5..c37c7d7b99b0ec6806c86a65d4c0739f835235ec 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.FlushIntention.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.FlushIntention.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for FlushIntention.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum FlushIntention {\r
-               Flush = 0,\r
-               Sync = 1\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for FlushIntention.
+       /// </summary>
+       [Serializable]
+       public enum FlushIntention {
+               Flush = 0,
+               Sync = 1
+       }
+}
index 3a046e61dc01d6477099295574e4330892d4c68c..9389c0a0a226df3db3c7ecb44e8810b4c595a523 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.GraphicsContainer.cs\r
-//\r
-// Authors:\r
+//
+// System.Drawing.Drawing2D.GraphicsContainer.cs
+//
+// Authors:
 //   Dennis Hayes (dennish@Raytek.com)
-//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for GraphicsContainer.\r
-       /// </summary>\r
-       public sealed class GraphicsContainer : MarshalByRefObject {\r
-               \r
-               internal int nativeState = 0;\r
-               \r
-               private GraphicsContainer ()
-               {\r
-                       
-               }\r
-               \r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for GraphicsContainer.
+       /// </summary>
+       public sealed class GraphicsContainer : MarshalByRefObject {
+               
+               private int nativeState = 0;
+
+               private GraphicsContainer () { }
+               
                internal GraphicsContainer (int state)
-               {\r
+               {
                        nativeState = state;
-               }\r
-               \r
-               internal int NativeObject{            \r
-                               get{\r
-                                               return nativeState;\r
-                               }\r
-                               set     {\r
-                                               nativeState = value;\r
-                               }\r
-                       }\r
-       }\r
-}\r
+               }
+               
+               internal int NativeObject {
+                       get {
+                               return nativeState;
+                       }
+                       set {
+                               nativeState = value;
+                       }
+               }
+       }
+}
index 526266b4434574937911daf5469da13177650207..bba15093af05926fc2972de3c92e9e2932ffa8a7 100644 (file)
@@ -1,14 +1,14 @@
-//\r
-// System.Drawing.Drawing2D.GraphicsPath.cs\r
-//\r
-// Authors:\r
-//\r
-//   Miguel de Icaza (miguel@ximian.com)\r
-//   Duncan Mak (duncan@ximian.com)\r
-//   Jordi Mas i Hernandez (jordi@ximian.com)\r
-//\r
-// (C) 2004 Novell, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.GraphicsPath.cs
+//
+// Authors:
+//
+//   Miguel de Icaza (miguel@ximian.com)
+//   Duncan Mak (duncan@ximian.com)
+//   Jordi Mas i Hernandez (jordi@ximian.com)
+//
+// (C) 2004 Novell, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System;\r
-using System.Drawing;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace System.Drawing.Drawing2D\r
-{\r
-        public sealed class GraphicsPath : MarshalByRefObject, ICloneable, IDisposable {\r
-\r
-                internal IntPtr nativePath = IntPtr.Zero;\r
-\r
-                GraphicsPath (IntPtr ptr)\r
-                {\r
-                        nativePath = ptr;\r
-                }\r
-                                       \r
-                public GraphicsPath ()\r
-                {\r
-                        Status status = GDIPlus.GdipCreatePath (FillMode.Alternate, out nativePath);\r
-                        GDIPlus.CheckStatus (status);\r
-                }\r
-                \r
-                public GraphicsPath (FillMode fillMode)\r
-                {\r
-                        Status status = GDIPlus.GdipCreatePath (fillMode, out nativePath);\r
-                        GDIPlus.CheckStatus (status);\r
-                }\r
-                \r
-                public GraphicsPath (Point[] pts, byte[] types)\r
-                {\r
-                        Status status = GDIPlus.GdipCreatePath2I (\r
-                                pts, types, pts.Length, FillMode.Alternate, out nativePath);\r
-                        GDIPlus.CheckStatus (status);\r
-                }\r
-                \r
-                public GraphicsPath (PointF[] pts, byte[] types)\r
-                {\r
-                        Status status = GDIPlus.GdipCreatePath2 (pts, types, pts.Length, FillMode.Alternate, out nativePath);\r
-                        GDIPlus.CheckStatus (status);\r
-                }\r
-                \r
-               public GraphicsPath (Point[] pts, byte[] types, FillMode fillMode)\r
-               {\r
-                        Status status = GDIPlus.GdipCreatePath2I (\r
-                                pts, types, pts.Length, fillMode, out nativePath);\r
-                        GDIPlus.CheckStatus (status);\r
-                }\r
-\r
-               public GraphicsPath (PointF[] pts, byte[] types, FillMode fillMode)\r
-               {\r
-                        Status status = GDIPlus.GdipCreatePath2 (pts, types, pts.Length, fillMode, out nativePath);\r
-                        GDIPlus.CheckStatus (status);\r
-                }\r
-       \r
-                public object Clone ()\r
-                {\r
-                        IntPtr clone;\r
-\r
-                        Status status = GDIPlus.GdipClonePath (nativePath, out clone);\r
-                        GDIPlus.CheckStatus (status);                          \r
-\r
-                        return new GraphicsPath (clone);\r
-                }\r
-\r
-                public void Dispose ()\r
-                {\r
-                        Dispose (true);\r
-                        System.GC.SuppressFinalize (this);\r
-                }\r
-\r
-                ~GraphicsPath ()\r
-                {\r
-                        Dispose (false);\r
-                }\r
-                \r
-                void Dispose (bool disposing)\r
-                {\r
-               \r
-                }\r
-\r
-\r
-                public FillMode FillMode {\r
-                        get {\r
-\r
-                                FillMode mode;\r
-                                Status status = GDIPlus.GdipGetPathFillMode (nativePath, out mode);\r
-                                GDIPlus.CheckStatus (status);                          \r
-                                \r
-                                return mode;\r
-                        }\r
-\r
-                        set {\r
-                                Status status = GDIPlus.GdipSetPathFillMode (nativePath, value);\r
-                                GDIPlus.CheckStatus (status);                          \r
-                        }\r
-                }\r
-\r
-                public PathData PathData {\r
-\r
-                        get {\r
-                                IntPtr tmp;\r
-                                Status status = GDIPlus.GdipGetPathData (nativePath, out tmp);\r
-                                GDIPlus.CheckStatus (status);                          \r
-\r
-                                throw new Exception ();\r
-                        }\r
-                }\r
-\r
-                public PointF [] PathPoints {\r
-\r
-                        get {\r
-                                int count;\r
-                        \r
-                                Status status = GDIPlus.GdipGetPointCount (nativePath, out count);\r
-                                GDIPlus.CheckStatus (status);                          \r
-\r
-                                PointF [] points = new PointF [count];\r
-\r
-                                status = GDIPlus.GdipGetPathPoints (nativePath, points, count); \r
-                                GDIPlus.CheckStatus (status);                          \r
-\r
-                                return points;\r
-                        }\r
-                }\r
-\r
-                public byte [] PathTypes {\r
-\r
-                        get {\r
-                                int count;\r
-                                Status status = GDIPlus.GdipGetPointCount (nativePath, out count);\r
-                                GDIPlus.CheckStatus (status);                          \r
-\r
-                                byte [] types = new byte [count];\r
-                                status = GDIPlus.GdipGetPathTypes (nativePath, types, count);\r
-                                GDIPlus.CheckStatus (status);                          \r
-\r
-                                return types;\r
-                        }\r
-                }\r
-\r
-                public int PointCount {\r
-\r
-                        get {\r
-                                int count;\r
-\r
-                                Status status = GDIPlus.GdipGetPointCount (nativePath, out count);\r
-                                GDIPlus.CheckStatus (status);                          \r
-\r
-                                return count;\r
-                        }\r
-                }\r
-                \r
-                internal IntPtr NativeObject{\r
-                \r
-                        get {\r
-                                return nativePath;\r
-                        }\r
-                        set {\r
-                                nativePath = value;\r
-                        }\r
-                }\r
-        \r
-                //\r
-                // AddArc\r
-                //\r
-                public void AddArc (Rectangle rect, float start_angle, float sweep_angle)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathArcI (nativePath, rect.X, rect.Y, rect.Width, rect.Height, start_angle, sweep_angle);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddArc (RectangleF rect, float start_angle, float sweep_angle)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathArc (nativePath, rect.X, rect.Y, rect.Width, rect.Height, start_angle, sweep_angle);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddArc (int x, int y, int width, int height, float start_angle, float sweep_angle)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathArcI (nativePath, x, y, width, height, start_angle, sweep_angle);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddArc (float x, float y, float width, float height, float start_angle, float sweep_angle)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathArc (nativePath, x, y, width, height, start_angle, sweep_angle);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                //\r
-                // AddBezier\r
-                //\r
-                public void AddBezier (Point pt1, Point pt2, Point pt3, Point pt4)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathBezierI (nativePath, pt1.X, pt1.Y,\r
-                                        pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y);\r
-                                        \r
-                       GDIPlus.CheckStatus (status);                                                                         \r
-                }\r
-\r
-                public void AddBezier (PointF pt1, PointF pt2, PointF pt3, PointF pt4)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathBezier (nativePath, pt1.X, pt1.Y,\r
-                                        pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y);\r
-                                        \r
-                       GDIPlus.CheckStatus (status);                                                                  \r
-                }\r
-\r
-                public void AddBezier (int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathBezierI (nativePath, x1, y1, x2, y2, x3, y3, x4, y4);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddBezier (float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathBezier (nativePath, x1, y1, x2, y2, x3, y3, x4, y4);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                //\r
-                // AddBeziers\r
-                //\r
-                public void AddBeziers (Point [] pts)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathBeziersI (nativePath, pts, pts.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddBeziers (PointF [] pts)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathBeziers (nativePath, pts, pts.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                //\r
-                // AddEllipse\r
-                //\r
-                public void AddEllipse (RectangleF r)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathEllipse (nativePath, r.X, r.Y, r.Width, r.Height);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-                \r
-                public void AddEllipse (float x, float y, float width, float height)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathEllipse (nativePath, x, y, width, height);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddEllipse (Rectangle r)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathEllipseI (nativePath, r.X, r.Y, r.Width, r.Height);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-                \r
-                public void AddEllipse (int x, int y, int width, int height)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathEllipseI (nativePath, x, y, width, height);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-                \r
-\r
-                //\r
-                // AddLine\r
-                //\r
-                public void AddLine (Point a, Point b)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathLineI (nativePath, a.X, a.Y, b.X, b.Y);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddLine (PointF a, PointF b)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathLine (nativePath, a.X, a.Y, b.X,\r
-                                        b.Y);\r
-                                        \r
-                       GDIPlus.CheckStatus (status);                                                                  \r
-                }\r
-\r
-                public void AddLine (int x1, int y1, int x2, int y2)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathLineI (nativePath, x1, y1, x2, y2);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddLine (float x1, float y1, float x2, float y2)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathLine (nativePath, x1, y1, x2,\r
-                                        y2);                \r
-                                        \r
-                       GDIPlus.CheckStatus (status);                                                                  \r
-                }\r
-\r
-                //\r
-                // AddLines\r
-                //\r
-                public void AddLines (Point [] points)\r
-                {\r
-                        int length = points.Length;\r
-\r
-                        for (int i = 0; i < length - 2; i += 2) {\r
-                                int j = i + 1;\r
-                                Status status = GDIPlus.GdipAddPathLineI (\r
-                                        nativePath, points [i].X, points [i].Y, points [j].X, points [j].Y);\r
-                                GDIPlus.CheckStatus (status);                          \r
-                        }\r
-                }\r
-\r
-                public void AddLines (PointF [] points)\r
-                {\r
-                        int length = points.Length;\r
-\r
-                        for (int i = 0; i < length - 2; i += 2) {\r
-                                int j = i + 1;\r
-                                Status status = GDIPlus.GdipAddPathLine (\r
-                                        nativePath, points [i].X, points [i].Y, points [j].X, points [j].Y);\r
-                                GDIPlus.CheckStatus (status);                          \r
-                        }\r
-                }\r
-        \r
-                //\r
-                // AddPie\r
-                //\r
-                public void AddPie (Rectangle rect, float startAngle, float sweepAngle)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathPie (\r
-                                nativePath, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddPie (int x, int y, int width, int height, float startAngle, float sweepAngle)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathPieI (nativePath, x, y, width, height, startAngle, sweepAngle);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddPie (float x, float y, float width, float height, float startAngle, float sweepAngle)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathPie (nativePath, x, y, width, height, startAngle, sweepAngle);                \r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                //\r
-                // AddPolygon\r
-                //\r
-                public void AddPolygon (Point [] points)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathPolygonI (nativePath, points, points.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddPolygon (PointF [] points)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathPolygon (nativePath, points, points.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                //\r
-                // AddRectangle\r
-                //\r
-                public void AddRectangle (Rectangle rect)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathRectangleI (nativePath, rect.X, rect.Y, rect.Width, rect.Height);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddRectangle (RectangleF rect)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathRectangle (nativePath, rect.X, rect.Y, rect.Width, rect.Height);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                //\r
-                // AddRectangles\r
-                //\r
-                public void AddRectangles (Rectangle [] rects)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathRectanglesI (nativePath, rects, rects.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddRectangles (RectangleF [] rects)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathRectangles (nativePath, rects, rects.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                //\r
-                // AddPath\r
-                //\r
-                public void AddPath (GraphicsPath addingPath, bool connect)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathPath (nativePath, addingPath.nativePath, connect);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public PointF GetLastPoint ()\r
-                {\r
-                        PointF pt;\r
-                        Status status = GDIPlus.GdipGetPathLastPoint (nativePath, out pt);\r
-                        GDIPlus.CheckStatus (status);                          \r
-\r
-                        return pt;\r
-                }\r
-\r
-                //\r
-                // AddClosedCurve\r
-                //\r
-                public void AddClosedCurve (Point [] points)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathClosedCurveI (nativePath, points, points.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddClosedCurve (PointF [] points)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathClosedCurve (nativePath, points, points.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddClosedCurve (Point [] points, float tension)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathClosedCurve2I (nativePath, points, points.Length, tension);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddClosedCurve (PointF [] points, float tension)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathClosedCurve2 (nativePath, points, points.Length, tension);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                //\r
-                // AddCurve\r
-                //\r
-                public void AddCurve (Point [] points)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathCurveI (nativePath, points, points.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-                \r
-                public void AddCurve (PointF [] points)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathCurve (nativePath, points, points.Length);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-                \r
-                public void AddCurve (Point [] points, float tension)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathCurve2I (nativePath, points, points.Length, tension);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-                \r
-                public void AddCurve (PointF [] points, float tension)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathCurve2 (nativePath, points, points.Length, tension);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void AddCurve (Point [] points, int offset, int numberOfSegments, float tension)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathCurve3I (nativePath, points, points.Length,\r
-                                        offset, numberOfSegments, tension);\r
-                                        \r
-                       GDIPlus.CheckStatus (status);                                                                  \r
-                }\r
-                \r
-                public void AddCurve (PointF [] points, int offset, int numberOfSegments, float tension)\r
-                {\r
-                        Status status = GDIPlus.GdipAddPathCurve3 (nativePath, points, points.Length,\r
-                                        offset, numberOfSegments, tension);\r
-                                        \r
-                       GDIPlus.CheckStatus (status);                                                                  \r
-                }\r
-                        \r
-                public void Reset ()\r
-                {\r
-                        Status status = GDIPlus.GdipResetPath (nativePath);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void Reverse ()\r
-                {\r
-                        Status status = GDIPlus.GdipReversePath (nativePath);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-\r
-                public void Transform (Matrix matrix)\r
-                {\r
-                        Status status = GDIPlus.GdipTransformPath (nativePath, matrix.nativeMatrix);\r
-                        GDIPlus.CheckStatus (status);                          \r
-                }\r
-                \r
-                [MonoTODO]\r
-                public void AddString (string s, FontFamily family, int style,  float emSize,  Point origin,   StringFormat format)\r
-                {\r
-                       throw new NotImplementedException ();\r
-                }      \r
-                \r
-                [MonoTODO]\r
-               public void AddString (string s,  FontFamily family,  int style,  float emSize,  PointF origin,   StringFormat format)\r
-               {\r
-                       throw new NotImplementedException ();\r
-                }      \r
-               \r
-               [MonoTODO]\r
-               public void AddString (string s, FontFamily family, int style, float emSize,  Rectangle layoutRect, StringFormat format)\r
-               {\r
-                       throw new NotImplementedException ();\r
-                }      \r
-               \r
-               [MonoTODO]\r
-               public void AddString (string s, FontFamily family, int style, float emSize,  RectangleF layoutRect,   StringFormat format)\r
-               {\r
-                       throw new NotImplementedException ();\r
-                }      \r
-                \r
-               public void ClearMarkers()               \r
-               {\r
-                       Status s = GDIPlus.GdipClearPathMarkers (nativePath);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-                }\r
-                \r
-               public void CloseAllFigures()\r
-               {\r
-                       Status s = GDIPlus.GdipClosePathFigures (nativePath);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-                }      \r
-                \r
-               public void CloseFigure()\r
-               {\r
-                       Status s = GDIPlus.GdipClosePathFigure (nativePath);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-                } \r
-\r
-                public void Flatten ()\r
-                {\r
-                        // 1/4 is the FlatnessDefault as defined in GdiPlusEnums.h\r
-                       Flatten (null, 1.0f / 4.0f); \r
-                }      \r
-  \r
-               public void Flatten (Matrix matrix)\r
-               {\r
-                       Flatten (matrix, 1.0f / 4.0f);\r
-                }\r
-               \r
-               public void Flatten (Matrix matrix, float flatness)\r
-               {\r
-                       Status status = GDIPlus.GdipFlattenPath (nativePath, matrix.nativeMatrix, flatness);\r
-\r
-                        GDIPlus.CheckStatus (status);\r
-                }              \r
-                \r
-                public RectangleF GetBounds ()\r
-                {\r
-                       return GetBounds (null, null);\r
-                }              \r
-\r
-                public RectangleF GetBounds (Matrix matrix)\r
-                {\r
-                       return GetBounds (matrix, null);\r
-                }\r
-\r
-                [MonoTODO]\r
-                public RectangleF GetBounds (Matrix matrix, Pen pen)\r
-                {\r
-                        RectangleF retval;\r
-                        IntPtr m = (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix;\r
-                        IntPtr p = (pen == null) ? IntPtr.Zero : pen.nativeObject;\r
-                        \r
-                        Status s = GDIPlus.GdipGetPathWorldBounds (nativePath, out retval, m, p);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-\r
-                        return retval;\r
-                }\r
-                               \r
-               public bool IsOutlineVisible (Point point, Pen pen)\r
-               {\r
-                        return IsOutlineVisible (point.X, point.Y, pen, null);\r
-                }              \r
-               \r
-               public bool IsOutlineVisible (PointF point, Pen pen)\r
-               {\r
-                       return IsOutlineVisible (point.X, point.Y, pen, null);\r
-                } \r
-               \r
-               public bool IsOutlineVisible (int x, int y, Pen pen)\r
-               {\r
-                        return IsOutlineVisible (x, y, pen, null);\r
-                }\r
-\r
-               public bool IsOutlineVisible (float x, float y, Pen pen)\r
-               {\r
-                       return IsOutlineVisible (x, y, pen, null);\r
-                }              \r
-               \r
-               public bool IsOutlineVisible (Point pt, Pen pen, Graphics graphics)\r
-               {\r
-                       return IsOutlineVisible (pt.X, pt.Y, pen, graphics);\r
-                }              \r
-               \r
-               public bool IsOutlineVisible (PointF pt, Pen pen, Graphics graphics)\r
-               {\r
-                       return IsOutlineVisible (pt.X, pt.Y, pen, graphics);\r
-                }              \r
-                               \r
-               [MonoTODO]\r
-               public bool IsOutlineVisible (int x, int y, Pen pen, Graphics graphics)\r
-               {\r
-                        bool result;\r
-                        IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;\r
-                        \r
-                       Status s = GDIPlus.GdipIsOutlineVisiblePathPointI (nativePath, x, y, g, out result);\r
-                        GDIPlus.CheckStatus (s);\r
-\r
-                        return result;\r
-                }              \r
-               \r
-               [MonoTODO]\r
-               public bool IsOutlineVisible (float x, float y, Pen pen, Graphics graphics)\r
-               {\r
-                        bool result;\r
-                        IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;\r
-                        \r
-                       Status s = GDIPlus.GdipIsOutlineVisiblePathPoint (nativePath, x, y, g, out result);\r
-                        GDIPlus.CheckStatus (s);\r
-\r
-                        return result;\r
-                }              \r
-                \r
-                public bool IsVisible (Point point)\r
-                {\r
-                       return IsVisible (point.X, point.Y, null);\r
-                }              \r
-                \r
-                public bool IsVisible (PointF point)\r
-                {\r
-                       return IsVisible (point.X, point.Y, null);\r
-                }              \r
-                \r
-                public bool IsVisible (int x, int y)\r
-                {\r
-                       return IsVisible (x, y, null);\r
-                }\r
-\r
-                public bool IsVisible (float x, float y)\r
-                {\r
-                       return IsVisible (x, y, null);\r
-                }                              \r
-                \r
-                public bool IsVisible (Point pt, Graphics graphics)\r
-                {\r
-                       return IsVisible (pt.X, pt.Y, graphics);\r
-                }              \r
-                \r
-                public bool IsVisible (PointF pt, Graphics graphics)\r
-                {\r
-                       return IsVisible (pt.X, pt.Y, graphics);\r
-                }              \r
-                                \r
-                [MonoTODO]\r
-                public bool IsVisible (int x, int y, Graphics graphics)\r
-                {\r
-                        bool retval;\r
-\r
-                       IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;\r
-\r
-                        Status s = GDIPlus.GdipIsVisiblePathPointI (nativePath, x, y, g, out retval);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-\r
-                        return retval;\r
-                }              \r
-                \r
-                [MonoTODO]\r
-                public bool IsVisible (float x, float y, Graphics graphics)\r
-                {\r
-                        bool retval;\r
-\r
-                       IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;\r
-\r
-                        Status s = GDIPlus.GdipIsVisiblePathPoint (nativePath, x, y, g, out retval);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-\r
-                        return retval;\r
-                }              \r
-                \r
-                public void SetMarkers ()\r
-                {\r
-                       Status s = GDIPlus.GdipSetPathMarker (nativePath);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-                }\r
-                \r
-                public void StartFigure()\r
-                {\r
-                       Status s = GDIPlus.GdipStartPathFigure (nativePath);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-                }              \r
-                \r
-                public void Warp (PointF[] destPoints, RectangleF srcRect)\r
-                {\r
-                       Warp (destPoints, srcRect, null, WarpMode.Perspective, 1.0f / 4.0f);\r
-                }              \r
-\r
-               public void Warp (PointF[] destPoints, RectangleF srcRect, Matrix matrix)\r
-               {\r
-                       Warp (destPoints, srcRect, matrix, WarpMode.Perspective, 1.0f / 4.0f);\r
-                }              \r
-\r
-               public void Warp (PointF[] destPoints, RectangleF srcRect, Matrix matrix, WarpMode warpMode)\r
-               {\r
-                       Warp (destPoints, srcRect, matrix, warpMode, 1.0f / 4.0f);\r
-                }              \r
-\r
-               [MonoTODO]\r
-               public void Warp (PointF[] destPoints, RectangleF srcRect, Matrix matrix,  WarpMode warpMode, float flatness)\r
-               {\r
-                       IntPtr m = (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix;\r
-\r
-                        Status s = GDIPlus.GdipWarpPath (nativePath, m, destPoints, destPoints.Length,\r
-                                        srcRect.X, srcRect.Y, srcRect.Width, srcRect.Height, warpMode, flatness);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-                }\r
-                \r
-                public void Widen (Pen pen)\r
-               {\r
-                       Widen (pen, null, 1.0f / 4.0f);\r
-                }              \r
-                \r
-               public void Widen (Pen pen, Matrix matrix)\r
-               {       \r
-                       Widen (pen, matrix, 1.0f / 4.0f);\r
-                }              \r
-                \r
-               [MonoTODO]\r
-               public void Widen (Pen pen, Matrix matrix, float flatness)\r
-                {\r
-                        IntPtr p = (pen == null) ? IntPtr.Zero : pen.nativeObject;\r
-                       IntPtr m = (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix;\r
-\r
-                        Status s = GDIPlus.GdipWidenPath (nativePath, p, m, flatness);\r
-\r
-                        GDIPlus.CheckStatus (s);\r
-                } \r
-        }\r
-}\r
-\r
-\r
+
+using System;
+using System.Drawing;
+using System.Runtime.InteropServices;
+
+namespace System.Drawing.Drawing2D
+{
+        public sealed class GraphicsPath : MarshalByRefObject, ICloneable, IDisposable {
+
+                internal IntPtr nativePath = IntPtr.Zero;
+
+                GraphicsPath (IntPtr ptr)
+                {
+                        nativePath = ptr;
+                }
+                                       
+                public GraphicsPath ()
+                {
+                        Status status = GDIPlus.GdipCreatePath (FillMode.Alternate, out nativePath);
+                        GDIPlus.CheckStatus (status);
+                }
+                
+                public GraphicsPath (FillMode fillMode)
+                {
+                        Status status = GDIPlus.GdipCreatePath (fillMode, out nativePath);
+                        GDIPlus.CheckStatus (status);
+                }
+                
+                public GraphicsPath (Point[] pts, byte[] types)
+                {
+                        Status status = GDIPlus.GdipCreatePath2I (
+                                pts, types, pts.Length, FillMode.Alternate, out nativePath);
+                        GDIPlus.CheckStatus (status);
+                }
+                
+                public GraphicsPath (PointF[] pts, byte[] types)
+                {
+                        Status status = GDIPlus.GdipCreatePath2 (pts, types, pts.Length, FillMode.Alternate, out nativePath);
+                        GDIPlus.CheckStatus (status);
+                }
+                
+               public GraphicsPath (Point[] pts, byte[] types, FillMode fillMode)
+               {
+                        Status status = GDIPlus.GdipCreatePath2I (
+                                pts, types, pts.Length, fillMode, out nativePath);
+                        GDIPlus.CheckStatus (status);
+                }
+
+               public GraphicsPath (PointF[] pts, byte[] types, FillMode fillMode)
+               {
+                        Status status = GDIPlus.GdipCreatePath2 (pts, types, pts.Length, fillMode, out nativePath);
+                        GDIPlus.CheckStatus (status);
+                }
+       
+                public object Clone ()
+                {
+                        IntPtr clone;
+
+                        Status status = GDIPlus.GdipClonePath (nativePath, out clone);
+                        GDIPlus.CheckStatus (status);                          
+
+                        return new GraphicsPath (clone);
+                }
+
+                public void Dispose ()
+                {
+                        Dispose (true);
+                        System.GC.SuppressFinalize (this);
+                }
+
+                ~GraphicsPath ()
+                {
+                        Dispose (false);
+                }
+                
+                void Dispose (bool disposing)
+                {
+               
+                }
+
+
+                public FillMode FillMode {
+                        get {
+
+                                FillMode mode;
+                                Status status = GDIPlus.GdipGetPathFillMode (nativePath, out mode);
+                                GDIPlus.CheckStatus (status);                          
+                                
+                                return mode;
+                        }
+
+                        set {
+                                Status status = GDIPlus.GdipSetPathFillMode (nativePath, value);
+                                GDIPlus.CheckStatus (status);                          
+                        }
+                }
+
+                public PathData PathData {
+
+                        get {
+                                IntPtr tmp;
+                                Status status = GDIPlus.GdipGetPathData (nativePath, out tmp);
+                                GDIPlus.CheckStatus (status);                          
+
+                                throw new Exception ();
+                        }
+                }
+
+                public PointF [] PathPoints {
+
+                        get {
+                                int count;
+                        
+                                Status status = GDIPlus.GdipGetPointCount (nativePath, out count);
+                                GDIPlus.CheckStatus (status);                          
+
+                                PointF [] points = new PointF [count];
+
+                                status = GDIPlus.GdipGetPathPoints (nativePath, points, count); 
+                                GDIPlus.CheckStatus (status);                          
+
+                                return points;
+                        }
+                }
+
+                public byte [] PathTypes {
+
+                        get {
+                                int count;
+                                Status status = GDIPlus.GdipGetPointCount (nativePath, out count);
+                                GDIPlus.CheckStatus (status);                          
+
+                                byte [] types = new byte [count];
+                                status = GDIPlus.GdipGetPathTypes (nativePath, types, count);
+                                GDIPlus.CheckStatus (status);                          
+
+                                return types;
+                        }
+                }
+
+                public int PointCount {
+
+                        get {
+                                int count;
+
+                                Status status = GDIPlus.GdipGetPointCount (nativePath, out count);
+                                GDIPlus.CheckStatus (status);                          
+
+                                return count;
+                        }
+                }
+                
+                internal IntPtr NativeObject{
+                
+                        get {
+                                return nativePath;
+                        }
+                        set {
+                                nativePath = value;
+                        }
+                }
+        
+                //
+                // AddArc
+                //
+                public void AddArc (Rectangle rect, float start_angle, float sweep_angle)
+                {
+                        Status status = GDIPlus.GdipAddPathArcI (nativePath, rect.X, rect.Y, rect.Width, rect.Height, start_angle, sweep_angle);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddArc (RectangleF rect, float start_angle, float sweep_angle)
+                {
+                        Status status = GDIPlus.GdipAddPathArc (nativePath, rect.X, rect.Y, rect.Width, rect.Height, start_angle, sweep_angle);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddArc (int x, int y, int width, int height, float start_angle, float sweep_angle)
+                {
+                        Status status = GDIPlus.GdipAddPathArcI (nativePath, x, y, width, height, start_angle, sweep_angle);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddArc (float x, float y, float width, float height, float start_angle, float sweep_angle)
+                {
+                        Status status = GDIPlus.GdipAddPathArc (nativePath, x, y, width, height, start_angle, sweep_angle);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                //
+                // AddBezier
+                //
+                public void AddBezier (Point pt1, Point pt2, Point pt3, Point pt4)
+                {
+                        Status status = GDIPlus.GdipAddPathBezierI (nativePath, pt1.X, pt1.Y,
+                                        pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y);
+                                        
+                       GDIPlus.CheckStatus (status);                                                                         
+                }
+
+                public void AddBezier (PointF pt1, PointF pt2, PointF pt3, PointF pt4)
+                {
+                        Status status = GDIPlus.GdipAddPathBezier (nativePath, pt1.X, pt1.Y,
+                                        pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y);
+                                        
+                       GDIPlus.CheckStatus (status);                                                                  
+                }
+
+                public void AddBezier (int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
+                {
+                        Status status = GDIPlus.GdipAddPathBezierI (nativePath, x1, y1, x2, y2, x3, y3, x4, y4);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddBezier (float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
+                {
+                        Status status = GDIPlus.GdipAddPathBezier (nativePath, x1, y1, x2, y2, x3, y3, x4, y4);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                //
+                // AddBeziers
+                //
+                public void AddBeziers (Point [] pts)
+                {
+                        Status status = GDIPlus.GdipAddPathBeziersI (nativePath, pts, pts.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddBeziers (PointF [] pts)
+                {
+                        Status status = GDIPlus.GdipAddPathBeziers (nativePath, pts, pts.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                //
+                // AddEllipse
+                //
+                public void AddEllipse (RectangleF r)
+                {
+                        Status status = GDIPlus.GdipAddPathEllipse (nativePath, r.X, r.Y, r.Width, r.Height);
+                        GDIPlus.CheckStatus (status);                          
+                }
+                
+                public void AddEllipse (float x, float y, float width, float height)
+                {
+                        Status status = GDIPlus.GdipAddPathEllipse (nativePath, x, y, width, height);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddEllipse (Rectangle r)
+                {
+                        Status status = GDIPlus.GdipAddPathEllipseI (nativePath, r.X, r.Y, r.Width, r.Height);
+                        GDIPlus.CheckStatus (status);                          
+                }
+                
+                public void AddEllipse (int x, int y, int width, int height)
+                {
+                        Status status = GDIPlus.GdipAddPathEllipseI (nativePath, x, y, width, height);
+                        GDIPlus.CheckStatus (status);                          
+                }
+                
+
+                //
+                // AddLine
+                //
+                public void AddLine (Point a, Point b)
+                {
+                        Status status = GDIPlus.GdipAddPathLineI (nativePath, a.X, a.Y, b.X, b.Y);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddLine (PointF a, PointF b)
+                {
+                        Status status = GDIPlus.GdipAddPathLine (nativePath, a.X, a.Y, b.X,
+                                        b.Y);
+                                        
+                       GDIPlus.CheckStatus (status);                                                                  
+                }
+
+                public void AddLine (int x1, int y1, int x2, int y2)
+                {
+                        Status status = GDIPlus.GdipAddPathLineI (nativePath, x1, y1, x2, y2);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddLine (float x1, float y1, float x2, float y2)
+                {
+                        Status status = GDIPlus.GdipAddPathLine (nativePath, x1, y1, x2,
+                                        y2);                
+                                        
+                       GDIPlus.CheckStatus (status);                                                                  
+                }
+
+                //
+                // AddLines
+                //
+                public void AddLines (Point [] points)
+                {
+                        int length = points.Length;
+
+                        for (int i = 0; i < length - 2; i += 2) {
+                                int j = i + 1;
+                                Status status = GDIPlus.GdipAddPathLineI (
+                                        nativePath, points [i].X, points [i].Y, points [j].X, points [j].Y);
+                                GDIPlus.CheckStatus (status);                          
+                        }
+                }
+
+                public void AddLines (PointF [] points)
+                {
+                        int length = points.Length;
+
+                        for (int i = 0; i < length - 2; i += 2) {
+                                int j = i + 1;
+                                Status status = GDIPlus.GdipAddPathLine (
+                                        nativePath, points [i].X, points [i].Y, points [j].X, points [j].Y);
+                                GDIPlus.CheckStatus (status);                          
+                        }
+                }
+        
+                //
+                // AddPie
+                //
+                public void AddPie (Rectangle rect, float startAngle, float sweepAngle)
+                {
+                        Status status = GDIPlus.GdipAddPathPie (
+                                nativePath, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddPie (int x, int y, int width, int height, float startAngle, float sweepAngle)
+                {
+                        Status status = GDIPlus.GdipAddPathPieI (nativePath, x, y, width, height, startAngle, sweepAngle);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddPie (float x, float y, float width, float height, float startAngle, float sweepAngle)
+                {
+                        Status status = GDIPlus.GdipAddPathPie (nativePath, x, y, width, height, startAngle, sweepAngle);                
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                //
+                // AddPolygon
+                //
+                public void AddPolygon (Point [] points)
+                {
+                        Status status = GDIPlus.GdipAddPathPolygonI (nativePath, points, points.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddPolygon (PointF [] points)
+                {
+                        Status status = GDIPlus.GdipAddPathPolygon (nativePath, points, points.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                //
+                // AddRectangle
+                //
+                public void AddRectangle (Rectangle rect)
+                {
+                        Status status = GDIPlus.GdipAddPathRectangleI (nativePath, rect.X, rect.Y, rect.Width, rect.Height);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddRectangle (RectangleF rect)
+                {
+                        Status status = GDIPlus.GdipAddPathRectangle (nativePath, rect.X, rect.Y, rect.Width, rect.Height);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                //
+                // AddRectangles
+                //
+                public void AddRectangles (Rectangle [] rects)
+                {
+                        Status status = GDIPlus.GdipAddPathRectanglesI (nativePath, rects, rects.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddRectangles (RectangleF [] rects)
+                {
+                        Status status = GDIPlus.GdipAddPathRectangles (nativePath, rects, rects.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                //
+                // AddPath
+                //
+                public void AddPath (GraphicsPath addingPath, bool connect)
+                {
+                        Status status = GDIPlus.GdipAddPathPath (nativePath, addingPath.nativePath, connect);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public PointF GetLastPoint ()
+                {
+                        PointF pt;
+                        Status status = GDIPlus.GdipGetPathLastPoint (nativePath, out pt);
+                        GDIPlus.CheckStatus (status);                          
+
+                        return pt;
+                }
+
+                //
+                // AddClosedCurve
+                //
+                public void AddClosedCurve (Point [] points)
+                {
+                        Status status = GDIPlus.GdipAddPathClosedCurveI (nativePath, points, points.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddClosedCurve (PointF [] points)
+                {
+                        Status status = GDIPlus.GdipAddPathClosedCurve (nativePath, points, points.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddClosedCurve (Point [] points, float tension)
+                {
+                        Status status = GDIPlus.GdipAddPathClosedCurve2I (nativePath, points, points.Length, tension);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddClosedCurve (PointF [] points, float tension)
+                {
+                        Status status = GDIPlus.GdipAddPathClosedCurve2 (nativePath, points, points.Length, tension);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                //
+                // AddCurve
+                //
+                public void AddCurve (Point [] points)
+                {
+                        Status status = GDIPlus.GdipAddPathCurveI (nativePath, points, points.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+                
+                public void AddCurve (PointF [] points)
+                {
+                        Status status = GDIPlus.GdipAddPathCurve (nativePath, points, points.Length);
+                        GDIPlus.CheckStatus (status);                          
+                }
+                
+                public void AddCurve (Point [] points, float tension)
+                {
+                        Status status = GDIPlus.GdipAddPathCurve2I (nativePath, points, points.Length, tension);
+                        GDIPlus.CheckStatus (status);                          
+                }
+                
+                public void AddCurve (PointF [] points, float tension)
+                {
+                        Status status = GDIPlus.GdipAddPathCurve2 (nativePath, points, points.Length, tension);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void AddCurve (Point [] points, int offset, int numberOfSegments, float tension)
+                {
+                        Status status = GDIPlus.GdipAddPathCurve3I (nativePath, points, points.Length,
+                                        offset, numberOfSegments, tension);
+                                        
+                       GDIPlus.CheckStatus (status);                                                                  
+                }
+                
+                public void AddCurve (PointF [] points, int offset, int numberOfSegments, float tension)
+                {
+                        Status status = GDIPlus.GdipAddPathCurve3 (nativePath, points, points.Length,
+                                        offset, numberOfSegments, tension);
+                                        
+                       GDIPlus.CheckStatus (status);                                                                  
+                }
+                        
+                public void Reset ()
+                {
+                        Status status = GDIPlus.GdipResetPath (nativePath);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void Reverse ()
+                {
+                        Status status = GDIPlus.GdipReversePath (nativePath);
+                        GDIPlus.CheckStatus (status);                          
+                }
+
+                public void Transform (Matrix matrix)
+                {
+                        Status status = GDIPlus.GdipTransformPath (nativePath, matrix.nativeMatrix);
+                        GDIPlus.CheckStatus (status);                          
+                }
+                
+                [MonoTODO]
+                public void AddString (string s, FontFamily family, int style,  float emSize,  Point origin,   StringFormat format)
+                {
+                       throw new NotImplementedException ();
+                }      
+                
+                [MonoTODO]
+               public void AddString (string s,  FontFamily family,  int style,  float emSize,  PointF origin,   StringFormat format)
+               {
+                       throw new NotImplementedException ();
+                }      
+               
+               [MonoTODO]
+               public void AddString (string s, FontFamily family, int style, float emSize,  Rectangle layoutRect, StringFormat format)
+               {
+                       throw new NotImplementedException ();
+                }      
+               
+               [MonoTODO]
+               public void AddString (string s, FontFamily family, int style, float emSize,  RectangleF layoutRect,   StringFormat format)
+               {
+                       throw new NotImplementedException ();
+                }      
+                
+               public void ClearMarkers()               
+               {
+                       Status s = GDIPlus.GdipClearPathMarkers (nativePath);
+
+                        GDIPlus.CheckStatus (s);
+                }
+                
+               public void CloseAllFigures()
+               {
+                       Status s = GDIPlus.GdipClosePathFigures (nativePath);
+
+                        GDIPlus.CheckStatus (s);
+                }      
+                
+               public void CloseFigure()
+               {
+                       Status s = GDIPlus.GdipClosePathFigure (nativePath);
+
+                        GDIPlus.CheckStatus (s);
+                } 
+
+                public void Flatten ()
+                {
+                        // 1/4 is the FlatnessDefault as defined in GdiPlusEnums.h
+                       Flatten (null, 1.0f / 4.0f); 
+                }      
+  
+               public void Flatten (Matrix matrix)
+               {
+                       Flatten (matrix, 1.0f / 4.0f);
+                }
+               
+               public void Flatten (Matrix matrix, float flatness)
+               {
+                       Status status = GDIPlus.GdipFlattenPath (nativePath, matrix.nativeMatrix, flatness);
+
+                        GDIPlus.CheckStatus (status);
+                }              
+                
+                public RectangleF GetBounds ()
+                {
+                       return GetBounds (null, null);
+                }              
+
+                public RectangleF GetBounds (Matrix matrix)
+                {
+                       return GetBounds (matrix, null);
+                }
+
+                [MonoTODO]
+                public RectangleF GetBounds (Matrix matrix, Pen pen)
+                {
+                        RectangleF retval;
+                        IntPtr m = (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix;
+                        IntPtr p = (pen == null) ? IntPtr.Zero : pen.nativeObject;
+                        
+                        Status s = GDIPlus.GdipGetPathWorldBounds (nativePath, out retval, m, p);
+
+                        GDIPlus.CheckStatus (s);
+
+                        return retval;
+                }
+                               
+               public bool IsOutlineVisible (Point point, Pen pen)
+               {
+                        return IsOutlineVisible (point.X, point.Y, pen, null);
+                }              
+               
+               public bool IsOutlineVisible (PointF point, Pen pen)
+               {
+                       return IsOutlineVisible (point.X, point.Y, pen, null);
+                } 
+               
+               public bool IsOutlineVisible (int x, int y, Pen pen)
+               {
+                        return IsOutlineVisible (x, y, pen, null);
+                }
+
+               public bool IsOutlineVisible (float x, float y, Pen pen)
+               {
+                       return IsOutlineVisible (x, y, pen, null);
+                }              
+               
+               public bool IsOutlineVisible (Point pt, Pen pen, Graphics graphics)
+               {
+                       return IsOutlineVisible (pt.X, pt.Y, pen, graphics);
+                }              
+               
+               public bool IsOutlineVisible (PointF pt, Pen pen, Graphics graphics)
+               {
+                       return IsOutlineVisible (pt.X, pt.Y, pen, graphics);
+                }              
+                               
+               [MonoTODO]
+               public bool IsOutlineVisible (int x, int y, Pen pen, Graphics graphics)
+               {
+                        bool result;
+                        IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;
+                        
+                       Status s = GDIPlus.GdipIsOutlineVisiblePathPointI (nativePath, x, y, g, out result);
+                        GDIPlus.CheckStatus (s);
+
+                        return result;
+                }              
+               
+               [MonoTODO]
+               public bool IsOutlineVisible (float x, float y, Pen pen, Graphics graphics)
+               {
+                        bool result;
+                        IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;
+                        
+                       Status s = GDIPlus.GdipIsOutlineVisiblePathPoint (nativePath, x, y, g, out result);
+                        GDIPlus.CheckStatus (s);
+
+                        return result;
+                }              
+                
+                public bool IsVisible (Point point)
+                {
+                       return IsVisible (point.X, point.Y, null);
+                }              
+                
+                public bool IsVisible (PointF point)
+                {
+                       return IsVisible (point.X, point.Y, null);
+                }              
+                
+                public bool IsVisible (int x, int y)
+                {
+                       return IsVisible (x, y, null);
+                }
+
+                public bool IsVisible (float x, float y)
+                {
+                       return IsVisible (x, y, null);
+                }                              
+                
+                public bool IsVisible (Point pt, Graphics graphics)
+                {
+                       return IsVisible (pt.X, pt.Y, graphics);
+                }              
+                
+                public bool IsVisible (PointF pt, Graphics graphics)
+                {
+                       return IsVisible (pt.X, pt.Y, graphics);
+                }              
+                                
+                [MonoTODO]
+                public bool IsVisible (int x, int y, Graphics graphics)
+                {
+                        bool retval;
+
+                       IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;
+
+                        Status s = GDIPlus.GdipIsVisiblePathPointI (nativePath, x, y, g, out retval);
+
+                        GDIPlus.CheckStatus (s);
+
+                        return retval;
+                }              
+                
+                [MonoTODO]
+                public bool IsVisible (float x, float y, Graphics graphics)
+                {
+                        bool retval;
+
+                       IntPtr g = (graphics == null) ? IntPtr.Zero : graphics.nativeObject;
+
+                        Status s = GDIPlus.GdipIsVisiblePathPoint (nativePath, x, y, g, out retval);
+
+                        GDIPlus.CheckStatus (s);
+
+                        return retval;
+                }              
+                
+                public void SetMarkers ()
+                {
+                       Status s = GDIPlus.GdipSetPathMarker (nativePath);
+
+                        GDIPlus.CheckStatus (s);
+                }
+                
+                public void StartFigure()
+                {
+                       Status s = GDIPlus.GdipStartPathFigure (nativePath);
+
+                        GDIPlus.CheckStatus (s);
+                }              
+                
+                public void Warp (PointF[] destPoints, RectangleF srcRect)
+                {
+                       Warp (destPoints, srcRect, null, WarpMode.Perspective, 1.0f / 4.0f);
+                }              
+
+               public void Warp (PointF[] destPoints, RectangleF srcRect, Matrix matrix)
+               {
+                       Warp (destPoints, srcRect, matrix, WarpMode.Perspective, 1.0f / 4.0f);
+                }              
+
+               public void Warp (PointF[] destPoints, RectangleF srcRect, Matrix matrix, WarpMode warpMode)
+               {
+                       Warp (destPoints, srcRect, matrix, warpMode, 1.0f / 4.0f);
+                }              
+
+               [MonoTODO]
+               public void Warp (PointF[] destPoints, RectangleF srcRect, Matrix matrix,  WarpMode warpMode, float flatness)
+               {
+                       IntPtr m = (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix;
+
+                        Status s = GDIPlus.GdipWarpPath (nativePath, m, destPoints, destPoints.Length,
+                                        srcRect.X, srcRect.Y, srcRect.Width, srcRect.Height, warpMode, flatness);
+
+                        GDIPlus.CheckStatus (s);
+                }
+                
+                public void Widen (Pen pen)
+               {
+                       Widen (pen, null, 1.0f / 4.0f);
+                }              
+                
+               public void Widen (Pen pen, Matrix matrix)
+               {       
+                       Widen (pen, matrix, 1.0f / 4.0f);
+                }              
+                
+               [MonoTODO]
+               public void Widen (Pen pen, Matrix matrix, float flatness)
+                {
+                        IntPtr p = (pen == null) ? IntPtr.Zero : pen.nativeObject;
+                       IntPtr m = (matrix == null) ? IntPtr.Zero : matrix.nativeMatrix;
+
+                        Status s = GDIPlus.GdipWidenPath (nativePath, p, m, flatness);
+
+                        GDIPlus.CheckStatus (s);
+                } 
+        }
+}
+
+
index 44bfeda66289813648dcccca7e06535c6cb92874..3fee789af7d56e6adae6deeafdbeb9486aa95187 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.GraphicsPathIterator.cs\r
-//\r
-// Author:\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//   Duncan Mak (duncan@ximian.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.GraphicsPathIterator.cs
+//
+// Author:
+//   Dennis Hayes (dennish@Raytek.com)
+//   Duncan Mak (duncan@ximian.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-using System.Drawing;\r
-\r
-namespace System.Drawing.Drawing2D\r
-{\r
-        public sealed class GraphicsPathIterator : MarshalByRefObject, IDisposable\r
-        {\r
-                PointF [] _points;\r
-                byte [] _types;\r
-                int _count;\r
-                int _current;\r
-                \r
-                // Constructors\r
-                public GraphicsPathIterator (GraphicsPath path)\r
-                {\r
-                        this._points = path.PathPoints;\r
-                        this._types = path.PathTypes;\r
-                        this._count = path.PointCount;\r
-                        this._current = 0;\r
-                }\r
-\r
-                // Public Properites\r
-                public int Count {\r
-                        get {\r
-                                return _count;\r
-                        }\r
-                }\r
-\r
-                public int SubpathCount {\r
-                        get {\r
-                                int count = 0;\r
-\r
-                                foreach (byte b in _types)\r
-                                        if (b == (byte) PathPointType.Start)\r
-                                                count++;\r
-                                \r
-                                return count;\r
-                        }\r
-                }\r
-\r
-                // Public Methods.\r
-                public int CopyData (ref PointF [] points, ref byte [] types, int startIndex, int endIndex)\r
-                {\r
-                        for (int i = 0, j = startIndex; j < endIndex; i++, j++) {\r
-                                points [i] = _points [j];\r
-                                types [i] = _types [j];\r
-                        }\r
-\r
-                        return endIndex - startIndex;\r
-                }\r
-\r
-                public void Dispose ()\r
-                {\r
-                }\r
-\r
-               ~GraphicsPathIterator ()\r
-               {\r
-               }\r
-               \r
-                public int Enumerate (ref PointF [] points, ref byte [] types)\r
-                {\r
-                        points = _points;\r
-                        types = _types;\r
-\r
-                        return _count;\r
-                }\r
-\r
-                public bool HasCurve ()\r
-                {\r
-                        foreach (byte b in _types)\r
-                                if (b == (byte) PathPointType.Bezier)\r
-                                        return true;\r
-\r
-                        return false;\r
-                }\r
-\r
-                [MonoTODO]\r
-                public int NextMarker (GraphicsPath path)\r
-                {\r
-                        throw new NotImplementedException ();\r
-                }\r
-\r
-                [MonoTODO]\r
-                public int NextMarker (out int startIndex, out int endIndex)\r
-                {\r
-                        throw new NotImplementedException ();\r
-                }\r
-\r
-                [MonoTODO]\r
-                public int NextPathType (out byte pathType, out int startIndex, out int endIndex)\r
-                {\r
-                        throw new NotImplementedException ();\r
-                }\r
-\r
-                [MonoTODO]\r
-                public int NextSubpath (GraphicsPath path, out bool isClosed)\r
-                {\r
-                        throw new NotImplementedException ();\r
-                }\r
-\r
-                [MonoTODO]\r
-                public int NextSubpath (out int startIndex, out int endIndex, out bool isClosed)\r
-                {\r
-                        throw new NotImplementedException ();\r
-                }\r
-\r
-                public void Rewind ()\r
-                {\r
-                        _current = 0;\r
-                }\r
-        }\r
-}\r
+using System;
+using System.Drawing;
+
+namespace System.Drawing.Drawing2D
+{
+       public sealed class GraphicsPathIterator : MarshalByRefObject, IDisposable
+       {
+               private PointF [] _points;
+               private byte [] _types;
+               private int _count;
+               private int _current;
+
+               // Constructors
+               public GraphicsPathIterator (GraphicsPath path)
+               {
+                       this._points = path.PathPoints;
+                       this._types = path.PathTypes;
+                       this._count = path.PointCount;
+                       this._current = 0;
+               }
+
+               // Public Properites
+               public int Count {
+                       get {
+                               return _count;
+                       }
+               }
+
+               public int SubpathCount {
+                       get {
+                               int count = 0;
+
+                               foreach (byte b in _types)
+                                       if (b == (byte) PathPointType.Start)
+                                               count++;
+                               
+                               return count;
+                       }
+               }
+
+               // Public Methods.
+               public int CopyData (ref PointF [] points, ref byte [] types, int startIndex, int endIndex)
+               {
+                       for (int i = 0, j = startIndex; j < endIndex; i++, j++) {
+                               points [i] = _points [j];
+                               types [i] = _types [j];
+                       }
+
+                       return endIndex - startIndex;
+               }
+
+               public void Dispose ()
+               {
+               }
+
+               ~GraphicsPathIterator ()
+               {
+               }
+
+               public int Enumerate (ref PointF [] points, ref byte [] types)
+               {
+                       points = _points;
+                       types = _types;
+
+                       return _count;
+               }
+
+               public bool HasCurve ()
+               {
+                       foreach (byte b in _types)
+                               if (b == (byte) PathPointType.Bezier)
+                                       return true;
+
+                       return false;
+               }
+
+               [MonoTODO]
+               public int NextMarker (GraphicsPath path)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public int NextMarker (out int startIndex, out int endIndex)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public int NextPathType (out byte pathType, out int startIndex, out int endIndex)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public int NextSubpath (GraphicsPath path, out bool isClosed)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public int NextSubpath (out int startIndex, out int endIndex, out bool isClosed)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public void Rewind ()
+               {
+                       _current = 0;
+               }
+       }
+}
index 2b55007e0b02d9a4a42265cb8bb6a4fdb7e64efb..1e2e165301034940acbfb3975f380936575ae028 100644 (file)
@@ -1,11 +1,11 @@
-//\r
-// System.Drawing.Drawing2D.GraphicsState.cs\r
-//\r
-// Author:\r
+//
+// System.Drawing.Drawing2D.GraphicsState.cs
+//
+// Author:
 //   Dennis Hayes (dennish@Raytek.com)
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for GraphicsState.\r
-       /// </summary>\r
-       public sealed class GraphicsState : MarshalByRefObject\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for GraphicsState.
+       /// </summary>
+       public sealed class GraphicsState : MarshalByRefObject
        {
-               
-               //constructor
+               // Constructor
                internal GraphicsState()
                {
-                       //Nothing to be done here
+                       // Nothing to be done here
                }
-\r
-               //All members inherited\r
-               internal Matrix matrix;\r
-               internal uint nativeState;\r
-       }\r
-}\r
+
+               // All members inherited
+               internal Matrix matrix;
+               internal uint nativeState;
+       }
+}
index 506c77e72415afdb0412037b69836f11c874f9db..6e0d5b3931f98b64a7e4841459b1edb4c276934c 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.InterpolationMode.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.InterpolationMode.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for InterpolationMode.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum InterpolationMode {\r
-               Bicubic = 4,\r
-               Bilinear = 3,\r
-               Default = 0,\r
-               High = 2,\r
-               HighQualityBicubic = 7,\r
-               HighQualityBilinear = 6,\r
-               Invalid = -1,\r
-               Low = 1,\r
-               NearestNeighbor = 5\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for InterpolationMode.
+       /// </summary>
+       [Serializable]
+       public enum InterpolationMode {
+               Bicubic = 4,
+               Bilinear = 3,
+               Default = 0,
+               High = 2,
+               HighQualityBicubic = 7,
+               HighQualityBilinear = 6,
+               Invalid = -1,
+               Low = 1,
+               NearestNeighbor = 5
+       }
+}
index 6715a5789c4973fe5409462be68c709f7b67ef1d..35f010efca2a14257642e6ae7358420b746ac1cb 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.LineCap.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.LineCap.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for LineCap.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum LineCap {\r
-               AnchorMask = 240,\r
-               ArrowAnchor = 20,\r
-               Custom = 255,\r
-               DiamondAnchor = 19,\r
-               Flat = 0,\r
-               NoAnchor = 16,\r
-               Round = 2,\r
-               RoundAnchor = 18,\r
-               Square = 1,\r
-               SquareAnchor = 17,\r
-               Triangle = 3\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for LineCap.
+       /// </summary>
+       [Serializable]
+       public enum LineCap {
+               AnchorMask = 240,
+               ArrowAnchor = 20,
+               Custom = 255,
+               DiamondAnchor = 19,
+               Flat = 0,
+               NoAnchor = 16,
+               Round = 2,
+               RoundAnchor = 18,
+               Square = 1,
+               SquareAnchor = 17,
+               Triangle = 3
+       }
+}
index 7a347d58f9d102b93ff548d3ce048c03ee7ebef5..95eac81714263cf23cb7b6e4dca5a674e71f9389 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.LineJoin.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.LineJoin.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for LineJoin.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum LineJoin {\r
-               Bevel = 1,\r
-               Miter = 0,\r
-               MiterClipped = 3,\r
-               Round = 2\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for LineJoin.
+       /// </summary>
+       [Serializable]
+       public enum LineJoin {
+               Bevel = 1,
+               Miter = 0,
+               MiterClipped = 3,
+               Round = 2
+       }
+}
index 7da0430d099d7d9f5cfdb943a305239a2eacc5a5..4e4472d2547df8a116a324d6d3581929a6f3268f 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.LinearGradientMode.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.LinearGradientMode.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for LinearGradientMode.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum LinearGradientMode {\r
-               BackwardDiagonal = 3,\r
-               ForwardDiagonal = 2,\r
-               Horizontal = 0,\r
-               Vertical = 1\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for LinearGradientMode.
+       /// </summary>
+       [Serializable]
+       public enum LinearGradientMode {
+               BackwardDiagonal = 3,
+               ForwardDiagonal = 2,
+               Horizontal = 0,
+               Vertical = 1
+       }
+}
index e13a926f7c3efe5919ef7786fc5a52b28e2f25f2..b56d9d33eb3b1264edb4a67c9f4b69a2e66da5f7 100644 (file)
@@ -1,15 +1,15 @@
-//\r
-// System.Drawing.Drawing2D.Matrix.cs\r
-//\r
-// Authors:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//   Duncan Mak (duncan@ximian.com)\r
+//
+// System.Drawing.Drawing2D.Matrix.cs
+//
+// Authors:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//   Duncan Mak (duncan@ximian.com)
 //   Ravindra (rkumar@novell.com)
-//\r
+//
 // (C) Ximian, Inc.  http://www.ximian.com
-// (C) Novell, Inc.  http://www.novell.com\r
-//\r
+// (C) Novell, Inc.  http://www.novell.com
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System;\r
-using System.Drawing;\r
-using System.Runtime.InteropServices;\r
-\r
-namespace System.Drawing.Drawing2D\r
-{\r
-        public sealed class Matrix : MarshalByRefObject, IDisposable\r
-        {\r
-                internal IntPtr nativeMatrix;\r
-                \r
-                // constructors\r
-                internal Matrix (IntPtr ptr)\r
-                {\r
-                        nativeMatrix = ptr;\r
-                }\r
-                \r
-                public Matrix ()\r
-                {\r
+
+using System;
+using System.Drawing;
+using System.Runtime.InteropServices;
+
+namespace System.Drawing.Drawing2D
+{
+        public sealed class Matrix : MarshalByRefObject, IDisposable
+        {
+                internal IntPtr nativeMatrix;
+                
+                // constructors
+                internal Matrix (IntPtr ptr)
+                {
+                        nativeMatrix = ptr;
+                }
+                
+                public Matrix ()
+                {
                        Status status = GDIPlus.GdipCreateMatrix (out nativeMatrix);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public Matrix (Rectangle rect , Point[] plgpts)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public Matrix (Rectangle rect , Point[] plgpts)
+                {
                        Status status = GDIPlus.GdipCreateMatrix3I (rect, plgpts, out nativeMatrix);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public Matrix (RectangleF rect , PointF[] pa)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public Matrix (RectangleF rect , PointF[] pa)
+                {
                        Status status = GDIPlus.GdipCreateMatrix3 (rect, pa, out nativeMatrix);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-\r
-                public Matrix (float m11, float m12, float m21, float m22, float dx, float dy)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+
+                public Matrix (float m11, float m12, float m21, float m22, float dx, float dy)
+                {
                        Status status = GDIPlus.GdipCreateMatrix2 (m11, m12, m21, m22, dx, dy, out nativeMatrix);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                // properties\r
-                public float[] Elements {\r
-                        get {\r
-                                IntPtr tmp = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (float)) * 6);\r
-                                float [] retval = new float [6];\r
-\r
-                               Status status = GDIPlus.GdipGetMatrixElements (nativeMatrix, tmp);\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                // properties
+                public float[] Elements {
+                        get {
+                                IntPtr tmp = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (float)) * 6);
+                                float [] retval = new float [6];
+
+                               Status status = GDIPlus.GdipGetMatrixElements (nativeMatrix, tmp);
+                               GDIPlus.CheckStatus (status);
+
+                                Marshal.Copy (tmp, retval, 0, 6);
+
+                                Marshal.FreeHGlobal (tmp);
+                                return retval;
+                        }
+                }
+        
+                public bool IsIdentity {
+                        get {
+                                bool retval;
+                               Status status = GDIPlus.GdipIsMatrixIdentity (nativeMatrix, out retval);
+                               GDIPlus.CheckStatus (status);
+                                return retval;
+                        }
+                }
+        
+                public bool IsInvertible {
+                        get {
+                                bool retval;
+                               Status status = GDIPlus.GdipIsMatrixInvertible (nativeMatrix, out retval);
                                GDIPlus.CheckStatus (status);
-\r
-                                Marshal.Copy (tmp, retval, 0, 6);\r
-\r
-                                Marshal.FreeHGlobal (tmp);\r
-                                return retval;\r
-                        }\r
-                }\r
-        \r
-                public bool IsIdentity {\r
-                        get {\r
-                                bool retval;\r
-                               Status status = GDIPlus.GdipIsMatrixIdentity (nativeMatrix, out retval);\r
-                               GDIPlus.CheckStatus (status);\r
-                                return retval;\r
-                        }\r
-                }\r
-        \r
-                public bool IsInvertible {\r
-                        get {\r
-                                bool retval;\r
-                               Status status = GDIPlus.GdipIsMatrixInvertible (nativeMatrix, out retval);\r
-                               GDIPlus.CheckStatus (status);\r
-                                return retval;\r
-                        }\r
-                }\r
-        \r
-                public float OffsetX {\r
-                        get {\r
-                                return this.Elements [4];\r
-                        }\r
-                }\r
-        \r
-                public float OffsetY {\r
-                        get {\r
-                                return this.Elements [5];\r
-                        }\r
-                }\r
-\r
-                public Matrix Clone()\r
-                {\r
-                        IntPtr retval;\r
+                                return retval;
+                        }
+                }
+        
+                public float OffsetX {
+                        get {
+                                return this.Elements [4];
+                        }
+                }
+        
+                public float OffsetY {
+                        get {
+                                return this.Elements [5];
+                        }
+                }
+
+                public Matrix Clone()
+                {
+                        IntPtr retval;
                         Status status = GDIPlus.GdipCloneMatrix (nativeMatrix, out retval);
-                       GDIPlus.CheckStatus (status);\r
-                        return new Matrix (retval);\r
-                }\r
-                \r
-        \r
-                public void Dispose ()\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                        return new Matrix (retval);
+                }
+                
+        
+                public void Dispose ()
+                {
                        Status status = GDIPlus.GdipDeleteMatrix (nativeMatrix);
-                       GDIPlus.CheckStatus (status);\r
-                }                       \r
-        \r
-                public override bool Equals (object obj)\r
-                {\r
-                        Matrix m = obj as Matrix;\r
-\r
-                        if (m != null) {\r
-                                bool retval;\r
+                       GDIPlus.CheckStatus (status);
+                }                       
+        
+                public override bool Equals (object obj)
+                {
+                        Matrix m = obj as Matrix;
+
+                        if (m != null) {
+                                bool retval;
                                Status status = GDIPlus.GdipIsMatrixEqual (nativeMatrix, m.nativeMatrix, out retval);
-                               GDIPlus.CheckStatus (status);\r
-                                return retval;\r
-\r
-                        } else\r
-                                return false;\r
-                }\r
-        \r
-                ~Matrix()\r
-                {\r
-                        Dispose ();\r
-                }\r
-                \r
-                public override int GetHashCode ()\r
-                {\r
-                        return base.GetHashCode ();\r
-                }\r
-        \r
-                public void Invert ()\r
-                {\r
+                               GDIPlus.CheckStatus (status);
+                                return retval;
+
+                        } else
+                                return false;
+                }
+        
+                ~Matrix()
+                {
+                        Dispose ();
+                }
+                
+                public override int GetHashCode ()
+                {
+                        return base.GetHashCode ();
+                }
+        
+                public void Invert ()
+                {
                        Status status = GDIPlus.GdipInvertMatrix (nativeMatrix);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void Multiply (Matrix matrix)\r
-                {\r
-                        Multiply (matrix, MatrixOrder.Prepend);\r
-                }\r
-        \r
-                public void Multiply (Matrix matrix, MatrixOrder order)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void Multiply (Matrix matrix)
+                {
+                        Multiply (matrix, MatrixOrder.Prepend);
+                }
+        
+                public void Multiply (Matrix matrix, MatrixOrder order)
+                {
                        Status status = GDIPlus.GdipMultiplyMatrix (nativeMatrix, matrix.nativeMatrix, order);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void Reset()\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void Reset()
+                {
                        Status status = GDIPlus.GdipSetMatrixElements (nativeMatrix, 1, 0, 0, 1, 0, 0);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void Rotate (float angle)\r
-                {\r
-                        Rotate (angle, MatrixOrder.Prepend);\r
-                }\r
-        \r
-                public void Rotate (float angle, MatrixOrder order)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void Rotate (float angle)
+                {
+                        Rotate (angle, MatrixOrder.Prepend);
+                }
+        
+                public void Rotate (float angle, MatrixOrder order)
+                {
                        Status status = GDIPlus.GdipRotateMatrix (nativeMatrix, angle, order);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void RotateAt (float angle, PointF point)\r
-                {\r
-                        RotateAt (angle, point, MatrixOrder.Prepend);\r
-                }\r
-        \r
-                public void RotateAt (float angle, PointF point, MatrixOrder order)\r
-                {\r
-                        angle *= (float) (Math.PI / 180.0);  // degrees to radians\r
-                        float cos = (float) Math.Cos (angle);\r
-                        float sin = (float) Math.Sin (angle);\r
-                        float e4 = -point.X * cos + point.Y * sin + point.X;\r
-                        float e5 = -point.X * sin - point.Y * cos + point.Y;\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void RotateAt (float angle, PointF point)
+                {
+                        RotateAt (angle, point, MatrixOrder.Prepend);
+                }
+        
+                public void RotateAt (float angle, PointF point, MatrixOrder order)
+                {
+                        angle *= (float) (Math.PI / 180.0);  // degrees to radians
+                        float cos = (float) Math.Cos (angle);
+                        float sin = (float) Math.Sin (angle);
+                        float e4 = -point.X * cos + point.Y * sin + point.X;
+                        float e5 = -point.X * sin - point.Y * cos + point.Y;
                         float[] m = this.Elements;
-\r
+
                        Status status;
-\r
-                        if (order == MatrixOrder.Prepend)\r
-                               status = GDIPlus.GdipSetMatrixElements (nativeMatrix,\r
-                                                               cos * m[0] + sin * m[2],\r
-                                                               cos * m[1] + sin * m[3],\r
-                                                               -sin * m[0] + cos * m[2],\r
-                                                               -sin * m[1] + cos * m[3],\r
-                                                               e4 * m[0] + e5 * m[2] + m[4],\r
-                                                               e4 * m[1] + e5 * m[3] + m[5]);\r
-                        else\r
-                               status = GDIPlus.GdipSetMatrixElements (nativeMatrix,\r
-                                                               m[0] * cos + m[1] * -sin,\r
-                                                               m[0] * sin + m[1] * cos,\r
-                                                               m[2] * cos + m[3] * -sin,\r
-                                                               m[2] * sin + m[3] * cos,\r
-                                                               m[4] * cos + m[5] * -sin + e4,\r
+
+                        if (order == MatrixOrder.Prepend)
+                               status = GDIPlus.GdipSetMatrixElements (nativeMatrix,
+                                                               cos * m[0] + sin * m[2],
+                                                               cos * m[1] + sin * m[3],
+                                                               -sin * m[0] + cos * m[2],
+                                                               -sin * m[1] + cos * m[3],
+                                                               e4 * m[0] + e5 * m[2] + m[4],
+                                                               e4 * m[1] + e5 * m[3] + m[5]);
+                        else
+                               status = GDIPlus.GdipSetMatrixElements (nativeMatrix,
+                                                               m[0] * cos + m[1] * -sin,
+                                                               m[0] * sin + m[1] * cos,
+                                                               m[2] * cos + m[3] * -sin,
+                                                               m[2] * sin + m[3] * cos,
+                                                               m[4] * cos + m[5] * -sin + e4,
                                                                m[4] * sin + m[5] * cos + e5);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void Scale (float scaleX, float scaleY)\r
-                {\r
-                        Scale (scaleX, scaleY, MatrixOrder.Prepend);\r
-                }\r
-        \r
-                public void Scale (float scaleX, float scaleY, MatrixOrder order)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void Scale (float scaleX, float scaleY)
+                {
+                        Scale (scaleX, scaleY, MatrixOrder.Prepend);
+                }
+        
+                public void Scale (float scaleX, float scaleY, MatrixOrder order)
+                {
                        Status status = GDIPlus.GdipScaleMatrix (nativeMatrix, scaleX, scaleY, order);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void Shear (float shearX, float shearY)\r
-                {\r
-                        Shear (shearX, shearY, MatrixOrder.Prepend);\r
-                }\r
-        \r
-                public void Shear (float shearX, float shearY, MatrixOrder order)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void Shear (float shearX, float shearY)
+                {
+                        Shear (shearX, shearY, MatrixOrder.Prepend);
+                }
+        
+                public void Shear (float shearX, float shearY, MatrixOrder order)
+                {
                        Status status = GDIPlus.GdipShearMatrix (nativeMatrix, shearX, shearY, order);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void TransformPoints (Point[] pts)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void TransformPoints (Point[] pts)
+                {
                        Status status = GDIPlus.GdipTransformMatrixPointsI (nativeMatrix, pts, pts.Length);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void TransformPoints (PointF[] pts)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void TransformPoints (PointF[] pts)
+                {
                        Status status = GDIPlus.GdipTransformMatrixPoints (nativeMatrix, pts, pts.Length);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void TransformVectors (Point[] pts)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void TransformVectors (Point[] pts)
+                {
                        Status status = GDIPlus.GdipVectorTransformMatrixPointsI (nativeMatrix, pts, pts.Length);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void TransformVectors (PointF[] pts)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void TransformVectors (PointF[] pts)
+                {
                        Status status = GDIPlus.GdipVectorTransformMatrixPoints (nativeMatrix, pts, pts.Length);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void Translate (float offsetX, float offsetY)\r
-                {\r
-                        Translate (offsetX, offsetY, MatrixOrder.Prepend);\r
-                }\r
-        \r
-                public void Translate (float offsetX, float offsetY, MatrixOrder order)\r
-                {\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void Translate (float offsetX, float offsetY)
+                {
+                        Translate (offsetX, offsetY, MatrixOrder.Prepend);
+                }
+        
+                public void Translate (float offsetX, float offsetY, MatrixOrder order)
+                {
                        Status status = GDIPlus.GdipTranslateMatrix (nativeMatrix, offsetX, offsetY, order);
-                       GDIPlus.CheckStatus (status);\r
-                }\r
-        \r
-                public void VectorTransformPoints (Point[] pts)\r
-                {\r
-                        TransformVectors (pts);\r
-                }\r
-                \r
-                internal IntPtr NativeObject\r
-                {\r
-                       get{\r
-                               return nativeMatrix;\r
-                       }\r
-                       set     {\r
-                               nativeMatrix = value;\r
-                       }\r
-               }\r
-        }\r
-}\r
+                       GDIPlus.CheckStatus (status);
+                }
+        
+                public void VectorTransformPoints (Point[] pts)
+                {
+                        TransformVectors (pts);
+                }
+                
+                internal IntPtr NativeObject
+                {
+                       get{
+                               return nativeMatrix;
+                       }
+                       set     {
+                               nativeMatrix = value;
+                       }
+               }
+        }
+}
index 25a9308f0dc2377accf0db8408f992c3769e2f22..bd8149d7e970540ac951a77cb99236013abc06de 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.MatrixOrder.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.MatrixOrder.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for MatrixOrder.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum MatrixOrder {\r
-               Append = 1,\r
-               Prepend = 0\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for MatrixOrder.
+       /// </summary>
+       [Serializable]
+       public enum MatrixOrder {
+               Append = 1,
+               Prepend = 0
+       }
+}
index ba6b8e461aa186047e18a0d7e54350ec5380d4c0..bc483ac38f6ea6be5c9b83e5615f8d708e78f53b 100644 (file)
@@ -1,11 +1,11 @@
-//\r
-// System.Drawing.Drawing2D.PathData.cs\r
-//\r
-// Authors:\r
+//
+// System.Drawing.Drawing2D.PathData.cs
+//
+// Authors:
 //   Dennis Hayes (dennish@Raytek.com)
-//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) 2002/3 Ximian, Inc
 //
 
 //
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System;\r
-\r
-namespace System.Drawing.Drawing2D\r
-{\r
-       /// <summary>\r
-       /// Summary description for PathData.\r
-       /// </summary>\r
-       public sealed class PathData\r
+
+using System;
+
+namespace System.Drawing.Drawing2D
+{
+       /// <summary>
+       /// Summary description for PathData.
+       /// </summary>
+       public sealed class PathData
        {
+               private PointF[] points = null;
+               private byte[] types = null;
 
-               PointF[] points = null;
-               byte[] types = null;
-\r
-               public PathData()\r
-               {\r
-               }
+               public PathData() { }
 
                public PointF[] Points {
                        get { return points; } 
@@ -56,6 +53,6 @@ namespace System.Drawing.Drawing2D
                public byte[] Types {
                        get { return types; }
                        set { types = value; }
-               }\r
-       }\r
-}\r
+               }
+       }
+}
index 3caef9ee401139dee2816d9c5adca71c40fb981b..eb67406f57ff5efb4a02f927fb592c2b742dd2b2 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.PathPointType.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.PathPointType.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for PathPointType.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum PathPointType {\r
-               Bezier = 3,\r
-               Bezier3 = 3,\r
-               CloseSubpath = 128,\r
-               DashMode = 16,\r
-               Line = 1,\r
-               PathMarker = 32,\r
-               PathTypeMask = 7,\r
-               Start = 0\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for PathPointType.
+       /// </summary>
+       [Serializable]
+       public enum PathPointType {
+               Bezier = 3,
+               Bezier3 = 3,
+               CloseSubpath = 128,
+               DashMode = 16,
+               Line = 1,
+               PathMarker = 32,
+               PathTypeMask = 7,
+               Start = 0
+       }
+}
index 576c5b134ebcd4dfe67dd41944dbed4816d82036..b35e4f0a48c6da62107e763408cdf4950da2c06a 100755 (executable)
@@ -1,11 +1,11 @@
-//\r
-// System.Drawing.Drawing2D.PenAlignment.cs\r
-//\r
-// Author:\r
-//   Miguel de Icaza (miguel@ximian.com)\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-// (C) 2002/3 Ximian, Inc  http://www.ximian.com\r
-//\r
+//
+// System.Drawing.Drawing2D.PenAlignment.cs
+//
+// Author:
+//   Miguel de Icaza (miguel@ximian.com)
+//   Dennis Hayes (dennish@Raytek.com)
+// (C) 2002/3 Ximian, Inc  http://www.ximian.com
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-\r
-       [Serializable]\r
-       public enum PenAlignment {\r
-               Center = 0,\r
-               Inset = 1,\r
-               Outset = 2,\r
-               Left = 3,\r
-               Right =4\r
-       }\r
-}\r
+
+using System;
+
+namespace System.Drawing.Drawing2D {
+
+       [Serializable]
+       public enum PenAlignment {
+               Center = 0,
+               Inset = 1,
+               Outset = 2,
+               Left = 3,
+               Right =4
+       }
+}
index 6d3a4d13f7b90c90cf94b759ea686f7e03b199d1..892fc23e56d79f92608573b74ac288d5b9b0eafb 100644 (file)
@@ -1,11 +1,11 @@
-//\r
-// System.Drawing.Drawing2D.PenType.cs\r
-//\r
-// Author:\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//using System;\r
+//
+// System.Drawing.Drawing2D.PenType.cs
+//
+// Author:
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//using System;
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-namespace System.Drawing.Drawing2D\r
-{\r
-       /// <summary>\r
-       /// Summary description for PenType.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum PenType {\r
-               HatchFill = 1,\r
-               LinearGradient = 4,\r
-               PathGradient = 3,\r
-               SolidColor = 0,\r
-               TextureFill = 2\r
-       }\r
-}\r
+
+namespace System.Drawing.Drawing2D
+{
+       /// <summary>
+       /// Summary description for PenType.
+       /// </summary>
+       [Serializable]
+       public enum PenType {
+               HatchFill = 1,
+               LinearGradient = 4,
+               PathGradient = 3,
+               SolidColor = 0,
+               TextureFill = 2
+       }
+}
index 67145d57689f9029be5b648204d826ec28a5cf71..858f9ebe9ac53ddea20428bf940280f0df10a38d 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.PixelOffsetMode.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.PixelOffsetMode.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for PixelOffsetMode.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum PixelOffsetMode {\r
-               Default = 0,\r
-               Half = 4,\r
-               HighQuality = 2,\r
-               HighSpeed = 1,\r
-               Invalid = -1,\r
-               None = 3\r
-       }\r
-}\r
-\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for PixelOffsetMode.
+       /// </summary>
+       [Serializable]
+       public enum PixelOffsetMode {
+               Default = 0,
+               Half = 4,
+               HighQuality = 2,
+               HighSpeed = 1,
+               Invalid = -1,
+               None = 3
+       }
+}
+
index 4f0806f1c6cb47f912e5a77609def074dee519dc..23a8c2277a4ebaf21c5ad257d9845228025403f3 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.QualityMode.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.QualityMode.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for QualityMode.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum QualityMode {\r
-               Default = 0,\r
-               High = 2,\r
-               Invalid = -1,\r
-               Low = 1\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for QualityMode.
+       /// </summary>
+       [Serializable]
+       public enum QualityMode {
+               Default = 0,
+               High = 2,
+               Invalid = -1,
+               Low = 1
+       }
+}
index 2d880da86a6877f19515a518da5dd66dc36a0885..8483f4b63a2509ef7fc3a514e3a85a8d1394381d 100644 (file)
@@ -1,11 +1,11 @@
-//\r
-// System.Drawing.Drawing2D.RegionData.cs\r
-//\r
-// Authors:\r
+//
+// System.Drawing.Drawing2D.RegionData.cs
+//
+// Authors:
 //   Dennis Hayes (dennish@Raytek.com)
-//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
+//   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+//
+// (C) 2002/3 Ximian, Inc
 //
 
 //
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System;\r
-\r
-namespace System.Drawing.Drawing2D\r
-{\r
-       /// <summary>\r
-       /// Summary description for RegionData.\r
-       /// </summary>\r
-       public sealed class RegionData\r
+
+using System;
+
+namespace System.Drawing.Drawing2D
+{
+       /// <summary>
+       /// Summary description for RegionData.
+       /// </summary>
+       public sealed class RegionData
        {
+               private byte[] data;
 
-               byte[] data;
-\r
-               internal RegionData()\r
-               {\r
-               }
+               internal RegionData () { }
 
                public byte[] Data {
                        get {return data;} 
                        set {data = value;}
-               }\r
-       }\r
-}\r
+               }
+       }
+}
index 52ec14433b7d74f546a656c2f1ca3ff63a8682d3..303e1d8c08831723186e0ea87088ed67751b85bf 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.Drawing2D.SmoothingMode.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc\r
-//\r
+//
+// System.Drawing.Drawing2D.SmoothingMode.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002/3 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for SmoothingMode.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum SmoothingMode {\r
-               AntiAlias = 4,\r
-               Default = 0,\r
-               HighQuality = 2,\r
-               HighSpeed = 1,\r
-               Invalid = -1,\r
-               None = 3\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for SmoothingMode.
+       /// </summary>
+       [Serializable]
+       public enum SmoothingMode {
+               AntiAlias = 4,
+               Default = 0,
+               HighQuality = 2,
+               HighSpeed = 1,
+               Invalid = -1,
+               None = 3
+       }
+}
index 0941c9669adbd9dd25b7514bb3635acdbd136dd7..f094fb12e652ba7f5ef005d31d2662d60062cdee 100644 (file)
@@ -1,12 +1,12 @@
-//\r
-// System.Drawing.WarpMode.cs\r
-//\r
-// Author:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//\r
-// (C) 2002 Ximian, Inc\r
-//\r
+//
+// System.Drawing.WarpMode.cs
+//
+// Author:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//
+// (C) 2002 Ximian, Inc
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for WarpMode.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum WarpMode {\r
-               Bilinear = 1,\r
-               Perspective = 0\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for WarpMode.
+       /// </summary>
+       [Serializable]
+       public enum WarpMode {
+               Bilinear = 1,
+               Perspective = 0
+       }
+}
index 154141b23b28dd3e9845402b31816e4fa2e386d4..d1195710d3efe0576711e3b06a2753d809804dc2 100644 (file)
@@ -1,14 +1,14 @@
-//\r
-// System.Drawing.Drawing2D.WrapMode.cs\r
-//\r
-// Authors:\r
-//   Stefan Maierhofer <sm@cg.tuwien.ac.at>\r
-//   Dennis Hayes (dennish@Raytek.com)\r
-//   Ravindra (rkumar@novell.com)\r
-//\r
-// (C) 2002/3 Ximian, Inc. http://www.ximian.com\r
-// (C) 2004 Novell, Inc. http://www.novell.com\r
-//\r
+//
+// System.Drawing.Drawing2D.WrapMode.cs
+//
+// Authors:
+//   Stefan Maierhofer <sm@cg.tuwien.ac.at>
+//   Dennis Hayes (dennish@Raytek.com)
+//   Ravindra (rkumar@novell.com)
+//
+// (C) 2002/3 Ximian, Inc. http://www.ximian.com
+// (C) 2004 Novell, Inc. http://www.novell.com
+//
 
 //
 // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-using System;\r
-\r
-namespace System.Drawing.Drawing2D {\r
-       /// <summary>\r
-       /// Summary description for WrapMode.\r
-       /// </summary>\r
-       [Serializable]\r
-       public enum WrapMode {\r
-               Tile,\r
-               TileFlipX,\r
-               TileFlipY,\r
-               TileFlipXY,\r
-               Clamp\r
-       }\r
-}\r
+using System;
+
+namespace System.Drawing.Drawing2D {
+       /// <summary>
+       /// Summary description for WrapMode.
+       /// </summary>
+       [Serializable]
+       public enum WrapMode {
+               Tile,
+               TileFlipX,
+               TileFlipY,
+               TileFlipXY,
+               Clamp
+       }
+}