switch to unix line terminators
[mono.git] / mcs / class / System.Drawing / System.Drawing.Imaging / ColorPalette.cs
index f1ade643a8fbfc7a3b31bb6dc4236ac8886ba8c6..9fd13de699715163b77dcb68c374214743bee6f4 100755 (executable)
@@ -1,44 +1,49 @@
-//\r
-// System.Drawing.Imaging.ColorPalette.cs\r
-//\r
-// (C) 2002 Ximian, Inc.  http://www.ximian.com\r
-//\r
-// Author:\r
-//   Miguel de Icaza (miguel@ximian.com\r
-//\r
-\r
-using System;\r
-using System.Drawing;\r
-namespace System.Drawing.Imaging\r
-{\r
-       public sealed class ColorPalette {\r
-               // 0x1: the color values in the array contain alpha information\r
-               // 0x2: the color values are grayscale values.\r
-               // 0x4: the colors in the array are halftone values.\r
-\r
-               int flags;\r
-               Color [] entries;\r
-\r
-               //\r
-               // There is no public constructor, this will be used somewhere in the\r
-               // drawing code\r
-               //\r
-               internal ColorPalette ()\r
-               {\r
-                       flags = 0;\r
-                       entries = new Color [0];\r
-               }\r
-               \r
-               public Color [] Entries {\r
-                       get {\r
-                               return entries;\r
-                       }\r
-               }\r
-\r
-               public int Flags {\r
-                       get {\r
-                               return flags;\r
-                       }\r
-               }\r
-       }\r
-}\r
+//
+// System.Drawing.Imaging.ColorPalette.cs
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+// Author:
+//   Miguel de Icaza (miguel@ximian.com
+//
+
+using System;
+using System.Drawing;
+namespace System.Drawing.Imaging
+{
+       public sealed class ColorPalette {
+               // 0x1: the color values in the array contain alpha information
+               // 0x2: the color values are grayscale values.
+               // 0x4: the colors in the array are halftone values.
+
+               int flags;
+               Color [] entries;
+
+               //
+               // There is no public constructor, this will be used somewhere in the
+               // drawing code
+               //
+               internal ColorPalette ()
+               {
+                       flags = 0;
+                       entries = new Color [0];
+               }
+
+               internal ColorPalette (int flags, Color[] colors) {
+                       this.flags = flags;
+                       entries = colors;
+               }
+
+               public Color [] Entries {
+                       get {
+                               return entries;
+                       }
+               }
+
+               public int Flags {
+                       get {
+                               return flags;
+                       }
+               }
+       }
+}