EncoderParameter.jvm.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. //
  2. // System.Drawing.Imaging.EncoderParameter.cs
  3. //
  4. // Author:
  5. // Ravindra ([email protected])
  6. // Vladimir Vukicevic ([email protected])
  7. //
  8. // (C) 2004 Novell, Inc. http://www.novell.com
  9. //
  10. //
  11. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  12. //
  13. // Permission is hereby granted, free of charge, to any person obtaining
  14. // a copy of this software and associated documentation files (the
  15. // "Software"), to deal in the Software without restriction, including
  16. // without limitation the rights to use, copy, modify, merge, publish,
  17. // distribute, sublicense, and/or sell copies of the Software, and to
  18. // permit persons to whom the Software is furnished to do so, subject to
  19. // the following conditions:
  20. //
  21. // The above copyright notice and this permission notice shall be
  22. // included in all copies or substantial portions of the Software.
  23. //
  24. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  25. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  26. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  27. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  28. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  29. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  30. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  31. //
  32. using System;
  33. using System.Text;
  34. using System.Runtime.InteropServices;
  35. namespace System.Drawing.Imaging {
  36. [MonoTODO]
  37. public sealed class EncoderParameter : IDisposable {
  38. private Encoder encoder;
  39. private int valuesCount;
  40. private EncoderParameterValueType type;
  41. internal EncoderParameter ()
  42. {
  43. }
  44. [MonoTODO]
  45. public EncoderParameter (Encoder encoder, byte value)
  46. {
  47. throw new NotImplementedException();
  48. }
  49. [MonoTODO]
  50. public EncoderParameter (Encoder encoder, byte[] value)
  51. {
  52. throw new NotImplementedException();
  53. }
  54. [MonoTODO]
  55. public EncoderParameter (Encoder encoder, short value)
  56. {
  57. throw new NotImplementedException();
  58. }
  59. [MonoTODO]
  60. public EncoderParameter (Encoder encoder, short[] value)
  61. {
  62. throw new NotImplementedException();
  63. }
  64. [MonoTODO]
  65. public EncoderParameter (Encoder encoder, long value)
  66. {
  67. throw new NotImplementedException();
  68. }
  69. [MonoTODO]
  70. public EncoderParameter (Encoder encoder, long[] value)
  71. {
  72. throw new NotImplementedException();
  73. }
  74. [MonoTODO]
  75. public EncoderParameter (Encoder encoder, string value)
  76. {
  77. throw new NotImplementedException();
  78. }
  79. [MonoTODO]
  80. public EncoderParameter (Encoder encoder, byte value, bool undefined)
  81. {
  82. throw new NotImplementedException();
  83. }
  84. [MonoTODO]
  85. public EncoderParameter (Encoder encoder, byte[] value, bool undefined)
  86. {
  87. throw new NotImplementedException();
  88. }
  89. [MonoTODO]
  90. public EncoderParameter (Encoder encoder, int numerator, int denominator)
  91. {
  92. throw new NotImplementedException();
  93. }
  94. [MonoTODO]
  95. public EncoderParameter (Encoder encoder, int[] numerator, int[] denominator)
  96. {
  97. throw new NotImplementedException();
  98. }
  99. [MonoTODO]
  100. public EncoderParameter (Encoder encoder, long rangebegin, long rangeend)
  101. {
  102. throw new NotImplementedException();
  103. }
  104. [MonoTODO]
  105. public EncoderParameter (Encoder encoder, long[] rangebegin, long[] rangeend)
  106. {
  107. throw new NotImplementedException();
  108. }
  109. [MonoTODO]
  110. public EncoderParameter (Encoder encoder, int numberOfValues, int type, int value)
  111. {
  112. throw new NotImplementedException();
  113. }
  114. [MonoTODO]
  115. public EncoderParameter (Encoder encoder, int numerator1, int denominator1, int numerator2, int denominator2)
  116. {
  117. throw new NotImplementedException();
  118. }
  119. [MonoTODO]
  120. public EncoderParameter (Encoder encoder, int[] numerator1, int[] denominator1, int[] numerator2, int[] denominator2)
  121. {
  122. throw new NotImplementedException();
  123. }
  124. public Encoder Encoder {
  125. get {
  126. return encoder;
  127. }
  128. set {
  129. encoder = value;
  130. }
  131. }
  132. public int NumberOfValues {
  133. get {
  134. return valuesCount;
  135. }
  136. }
  137. public EncoderParameterValueType Type {
  138. get {
  139. return type;
  140. }
  141. }
  142. public EncoderParameterValueType ValueType {
  143. get {
  144. return type;
  145. }
  146. }
  147. void Dispose (bool disposing) {
  148. throw new NotImplementedException();
  149. }
  150. public void Dispose () {
  151. Dispose (true);
  152. }
  153. ~EncoderParameter () {
  154. Dispose (false);
  155. }
  156. }
  157. }