Encoder.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // System.Drawing.Imaging.Encoder.cs
  3. //
  4. // (C) 2004 Novell, Inc. http://www.novell.com
  5. // Author: Ravindra ([email protected])
  6. //
  7. using System;
  8. namespace System.Drawing.Imaging
  9. {
  10. public sealed class Encoder
  11. {
  12. Guid guid;
  13. public static readonly Encoder ChrominanceTable;
  14. public static readonly Encoder ColorDepth;
  15. public static readonly Encoder Compression;
  16. public static readonly Encoder LuminanceTable;
  17. public static readonly Encoder Quality;
  18. public static readonly Encoder RenderMethod;
  19. public static readonly Encoder SaveFlag;
  20. public static readonly Encoder ScanMethod;
  21. public static readonly Encoder Transformation;
  22. public static readonly Encoder Version;
  23. static Encoder ()
  24. {
  25. // GUID values are taken from my windows machine.
  26. ChrominanceTable = new Encoder ("f2e455dc-09b3-4316-8260-676ada32481c");
  27. ColorDepth = new Encoder ("66087055-ad66-4c7c-9a18-38a2310b8337");
  28. Compression = new Encoder ("e09d739d-ccd4-44ee-8eba-3fbf8be4fc58");
  29. LuminanceTable = new Encoder ("edb33bce-0266-4a77-b904-27216099e717");
  30. Quality = new Encoder ("1d5be4b5-fa4a-452d-9cdd-5db35105e7eb");
  31. RenderMethod = new Encoder ("6d42c53a-229a-4825-8bb7-5c99e2b9a8b8");
  32. SaveFlag = new Encoder ("292266fc-ac40-47bf-8cfc-a85b89a655de");
  33. ScanMethod = new Encoder ("3a4e2661-3109-4e56-8536-42c156e7dcfa");
  34. Transformation = new Encoder ("8d0eb2d1-a58e-4ea8-aa14-108074b7b6f9");
  35. Version = new Encoder ("24d18c76-814a-41a4-bf53-1c219cccf797");
  36. }
  37. internal Encoder (String guid) {
  38. this.guid = new Guid (guid);
  39. }
  40. public Encoder (Guid guid) {
  41. this.guid = guid;
  42. }
  43. public Guid Guid {
  44. get {
  45. return guid;
  46. }
  47. }
  48. }
  49. }