2003-07-21 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / System.Drawing / System.Drawing.Imaging / ColorPalette.cs
1 //
2 // System.Drawing.Imaging.ColorPalette.cs
3 //
4 // (C) 2002 Ximian, Inc.  http://www.ximian.com
5 //
6 // Author:
7 //   Miguel de Icaza (miguel@ximian.com
8 //
9
10 using System;
11 using System.Drawing;
12 namespace System.Drawing.Imaging
13 {
14         public sealed class ColorPalette {
15                 // 0x1: the color values in the array contain alpha information
16                 // 0x2: the color values are grayscale values.
17                 // 0x4: the colors in the array are halftone values.
18
19                 int flags;
20                 Color [] entries;
21
22                 //
23                 // There is no public constructor, this will be used somewhere in the
24                 // drawing code
25                 //
26                 internal ColorPalette ()
27                 {
28                         flags = 0;
29                         entries = new Color [0];
30                 }
31
32                 internal ColorPalette (int flags, Color[] colors) {
33                         this.flags = flags;
34                         entries = colors;
35                 }
36
37                 public Color [] Entries {
38                         get {
39                                 return entries;
40                         }
41                 }
42
43                 public int Flags {
44                         get {
45                                 return flags;
46                         }
47                 }
48         }
49 }