Implemented EncoderParameter.cs and EncoderParameters.cs.
[mono.git] / mcs / class / System.Drawing / System.Drawing.Imaging / ImageFormat.cs
1 //
2 // System.Drawing.Imaging.ImageFormat.cs
3 //
4 // Authors:
5 //   Everaldo Canuto (everaldo.canuto@bol.com.br)
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)\r
7 //   Dennis Hayes (dennish@raytek.com)\r
8 //
9 // (C) 2002 Ximian, Inc.  http://www.ximian.com
10 //
11
12 using System;
13 using System.ComponentModel;
14
15 namespace System.Drawing.Imaging {
16
17         [TypeConverter (typeof (ImageFormatConverter))]
18         public sealed class ImageFormat {
19
20                 Guid    guid;
21
22                 // constructors
23                 public ImageFormat(Guid guid) {
24                         this.guid = guid;
25                 }
26                 
27                 // methods
28                 [MonoTODO]
29                 public override bool Equals(object o) {
30                         return base.Equals(o);
31                 }
32
33                 [MonoTODO]
34                 public override int GetHashCode() {
35                         return base.GetHashCode();
36                 }
37                 
38                 [MonoTODO]
39                 public override string ToString() {
40                         // FIXME returns a string for the format like "Png"
41                         return String.Format("ImageFormat.Guid {0}", guid);
42                 }
43
44                 // properties
45                 public Guid Guid {
46                         get { return guid; }
47                 }
48
49                 static ImageFormat BmpImageFormat = new ImageFormat (new Guid ("b96b3cab-0728-11d3-9d7b-0000f81ef32e"));
50                 public static ImageFormat Bmp {
51                         get { return BmpImageFormat; }
52                 }
53                 
54                 static ImageFormat EmfImageFormat = new ImageFormat (new Guid ("b96b3cac-0728-11d3-9d7b-0000f81ef32e"));
55                 public static ImageFormat Emf {
56                         get { return EmfImageFormat; }
57                 }
58                 
59                 static ImageFormat ExifImageFormat = new ImageFormat (new Guid ("b96b3cb2-0728-11d3-9d7b-0000f81ef32e"));
60                 public static ImageFormat Exif {
61                         get { return ExifImageFormat; }
62                 }
63                 
64                 static ImageFormat GifImageFormat = new ImageFormat (new Guid ("b96b3cb0-0728-11d3-9d7b-0000f81ef32e"));
65                 public static ImageFormat Gif {
66                         get { return GifImageFormat; }
67                 }
68                 
69                 static ImageFormat IconImageFormat = new ImageFormat (new Guid ("b96b3cb5-0728-11d3-9d7b-0000f81ef32e"));
70                 public static ImageFormat Icon {
71                         get { return IconImageFormat; }
72                 }
73                 
74                 static ImageFormat JpegImageFormat = new ImageFormat(new Guid("b96b3cae-0728-11d3-9d7b-0000f81ef32e"));
75                 public static ImageFormat Jpeg {
76                         get { return JpegImageFormat; }
77                 }
78                 
79                 static ImageFormat MemoryBmpImageFormat = new ImageFormat (new Guid ("b96b3caa-0728-11d3-9d7b-0000f81ef32e"));
80                 public static ImageFormat MemoryBmp {
81                         get { return MemoryBmpImageFormat; }
82                 }
83                 
84                 static ImageFormat PngImageFormat = new ImageFormat(new Guid("b96b3caf-0728-11d3-9d7b-0000f81ef32e"));
85                 public static ImageFormat Png {
86                         get { return PngImageFormat; }
87                 }
88                 
89                 static ImageFormat TiffImageFormat = new ImageFormat (new Guid ("b96b3cb1-0728-11d3-9d7b-0000f81ef32e"));
90                 public static ImageFormat Tiff {
91                         get { return TiffImageFormat; }
92                 }
93                 
94                 static ImageFormat WmfImageFormat = new ImageFormat (new Guid ("b96b3cad-0728-11d3-9d7b-0000f81ef32e"));
95                 public static ImageFormat Wmf {
96                         get { return WmfImageFormat; }
97                 }
98                 
99         }
100
101 }