FrameDimension.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // created on 21.02.2002 at 17:06
  2. //
  3. // FrameDimension.cs
  4. //
  5. // Author: Christian Meyer
  6. // eMail: [email protected]
  7. // Dennis Hayes ([email protected])
  8. // Sanjay Gupta <[email protected]>
  9. // Jordi Mas i Hernanez ([email protected])
  10. namespace System.Drawing.Imaging {
  11. using System;
  12. public sealed class FrameDimension {
  13. internal Guid guid;
  14. // constructor
  15. public FrameDimension(Guid guid)
  16. {
  17. this.guid = guid;
  18. }
  19. //properties
  20. public Guid Guid {
  21. get {
  22. return guid;
  23. }
  24. }
  25. public static FrameDimension Page {
  26. get {
  27. return new FrameDimension (new Guid ("7462dc86-6180-4c7e-8e3f-ee7333a7a483"));
  28. }
  29. }
  30. public static FrameDimension Resolution {
  31. get {
  32. return new FrameDimension (new Guid ("84236f7b-3bd3-428f-8dab-4ea1439ca315" ));
  33. }
  34. }
  35. public static FrameDimension Time {
  36. get {
  37. return new FrameDimension (new Guid ("6aedbd6d-3fb5-418a-83a6-7f45229dc872" ));
  38. }
  39. }
  40. //methods
  41. public override bool Equals(object o)
  42. {
  43. if (!(o is FrameDimension))
  44. return false;
  45. return (guid == ((FrameDimension)o).guid);
  46. }
  47. public override int GetHashCode()
  48. {
  49. return guid.GetHashCode ();
  50. }
  51. public override string ToString()
  52. {
  53. return "FrameDimension :" + guid;
  54. }
  55. //destructor
  56. ~FrameDimension()
  57. {
  58. }
  59. }
  60. }