ImageCodecInfo.jvm.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. //
  2. // System.Drawing.Imaging.ImageCodecInfo.cs
  3. //
  4. // Authors:
  5. // Everaldo Canuto ([email protected])
  6. // Andreas Nahr ([email protected])
  7. // Dennis Hayes ([email protected])
  8. // Andreas Nahr ([email protected])
  9. // Dennis Hayes ([email protected])
  10. // Jordi Mas i Hernandez ([email protected])
  11. //
  12. // (C) 2002 Ximian, Inc. http://www.ximian.com
  13. //
  14. //
  15. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  16. //
  17. // Permission is hereby granted, free of charge, to any person obtaining
  18. // a copy of this software and associated documentation files (the
  19. // "Software"), to deal in the Software without restriction, including
  20. // without limitation the rights to use, copy, modify, merge, publish,
  21. // distribute, sublicense, and/or sell copies of the Software, and to
  22. // permit persons to whom the Software is furnished to do so, subject to
  23. // the following conditions:
  24. //
  25. // The above copyright notice and this permission notice shall be
  26. // included in all copies or substantial portions of the Software.
  27. //
  28. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  29. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  30. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  31. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  32. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  33. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  34. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  35. //
  36. using System;
  37. using System.Runtime.InteropServices;
  38. using System.Collections;
  39. using System.IO;
  40. namespace System.Drawing.Imaging {
  41. [ComVisible (false)]
  42. public sealed class ImageCodecInfo
  43. {
  44. private Guid clsid;
  45. private string codecName;
  46. private string dllName;
  47. private string filenameExtension;
  48. private ImageCodecFlags flags;
  49. private string formatDescription;
  50. private Guid formatID;
  51. private string mimeType;
  52. private byte[][] signatureMasks;
  53. private byte[][] signaturePatterns;
  54. private int version;
  55. internal ImageCodecInfo()
  56. {
  57. }
  58. // methods
  59. public static ImageCodecInfo[] GetImageDecoders()
  60. {
  61. throw new NotImplementedException();
  62. }
  63. public static ImageCodecInfo[] GetImageEncoders()
  64. {
  65. throw new NotImplementedException();
  66. }
  67. // properties
  68. public Guid Clsid
  69. {
  70. get { return clsid; }
  71. set { clsid = value; }
  72. }
  73. public string CodecName
  74. {
  75. get { return codecName; }
  76. set { codecName = value; }
  77. }
  78. public string DllName
  79. {
  80. get { return dllName; }
  81. set { dllName = value; }
  82. }
  83. public string FilenameExtension
  84. {
  85. get { return filenameExtension; }
  86. set { filenameExtension = value; }
  87. }
  88. public ImageCodecFlags Flags
  89. {
  90. get { return flags; }
  91. set { flags = value; }
  92. }
  93. public string FormatDescription
  94. {
  95. get { return formatDescription; }
  96. set { formatDescription = value; }
  97. }
  98. public Guid FormatID
  99. {
  100. get { return formatID; }
  101. set { formatID = value; }
  102. }
  103. public string MimeType
  104. {
  105. get { return mimeType; }
  106. set { mimeType = value; }
  107. }
  108. [CLSCompliant(false)]
  109. public byte[][] SignatureMasks
  110. {
  111. get { return signatureMasks; }
  112. set { signatureMasks = value; }
  113. }
  114. [CLSCompliant(false)]
  115. public byte[][] SignaturePatterns
  116. {
  117. get { return signaturePatterns; }
  118. set { signaturePatterns = value; }
  119. }
  120. public int Version
  121. {
  122. get { return version; }
  123. set { version = value; }
  124. }
  125. }
  126. }