ImageFormat.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. //
  2. // System.Drawing.Imaging.ImageFormat.cs
  3. //
  4. // (C) 2002 Ximian, Inc. http://www.ximian.com
  5. // Author: Everaldo Canuto
  6. // eMail: [email protected]
  7. // Dennis Hayes ([email protected])
  8. //
  9. using System;
  10. namespace System.Drawing.Imaging {
  11. public sealed class ImageFormat {
  12. Guid guid;
  13. // constructors
  14. [MonoTODO]
  15. public ImageFormat(Guid guid) {
  16. this.guid = guid;
  17. }
  18. // methods
  19. [MonoTODO]
  20. public override bool Equals(object o) {
  21. return base.Equals(o);
  22. }
  23. [MonoTODO]
  24. public override int GetHashCode() {
  25. return base.GetHashCode();
  26. }
  27. [MonoTODO]
  28. public override string ToString() {
  29. return String.Format("ImageFormat.Guid {0}", guid);
  30. }
  31. // properties
  32. static ImageFormat BmpImageFormat = new ImageFormat (new Guid ("DFB9AC7D-498D-4bd8-9D42-E23E541964B1"));
  33. [MonoTODO]
  34. public static ImageFormat Bmp {
  35. get { return BmpImageFormat; }
  36. }
  37. [MonoTODO]
  38. public static ImageFormat Emf {
  39. get { throw new NotImplementedException (); }
  40. }
  41. [MonoTODO]
  42. public static ImageFormat Exif {
  43. get { throw new NotImplementedException (); }
  44. }
  45. [MonoTODO]
  46. public static ImageFormat Gif {
  47. get { throw new NotImplementedException (); }
  48. }
  49. [MonoTODO]
  50. public Guid Guid {
  51. get { return guid; }
  52. }
  53. [MonoTODO]
  54. public static ImageFormat Icon {
  55. get { throw new NotImplementedException (); }
  56. }
  57. [MonoTODO]
  58. static ImageFormat JpegImageFormat = new ImageFormat(new Guid("83BFFDF8-398F-407f-BA33-A7993D11B2DA"));
  59. public static ImageFormat Jpeg {
  60. get { return JpegImageFormat; }
  61. }
  62. [MonoTODO]
  63. public static ImageFormat MemoryBmp {
  64. get { throw new NotImplementedException (); }
  65. }
  66. [MonoTODO]
  67. static ImageFormat PngImageFormat = new ImageFormat(new Guid("33CDFD76-3463-4273-BA28-A7993D11B2DA"));
  68. public static ImageFormat Png {
  69. get { return PngImageFormat; }
  70. }
  71. [MonoTODO]
  72. public static ImageFormat Tiff {
  73. get { throw new NotImplementedException (); }
  74. }
  75. [MonoTODO]
  76. public static ImageFormat Wmf {
  77. get { throw new NotImplementedException (); }
  78. }
  79. }
  80. }