Metafile.cs 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. //
  2. // System.Drawing.Imaging.Metafile.cs
  3. //
  4. // (C) 2002 Ximian, Inc. http://www.ximian.com
  5. // Author: Christian Meyer
  6. // eMail: [email protected]
  7. // Dennis Hayes ([email protected])
  8. //
  9. //
  10. // Copyright (C) 2004 Novell, Inc (http://www.novell.com)
  11. //
  12. // Permission is hereby granted, free of charge, to any person obtaining
  13. // a copy of this software and associated documentation files (the
  14. // "Software"), to deal in the Software without restriction, including
  15. // without limitation the rights to use, copy, modify, merge, publish,
  16. // distribute, sublicense, and/or sell copies of the Software, and to
  17. // permit persons to whom the Software is furnished to do so, subject to
  18. // the following conditions:
  19. //
  20. // The above copyright notice and this permission notice shall be
  21. // included in all copies or substantial portions of the Software.
  22. //
  23. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  24. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  25. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  26. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  27. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  28. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  29. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  30. //
  31. using System;
  32. using System.IO;
  33. using System.Reflection;
  34. using System.ComponentModel;
  35. using System.Runtime.InteropServices;
  36. namespace System.Drawing.Imaging {
  37. [Serializable]
  38. [ComVisible (false)]
  39. [Editor ("System.Drawing.Design.MetafileEditor, " + Consts.AssemblySystem_Drawing_Design, typeof (System.Drawing.Design.UITypeEditor))]
  40. public sealed class Metafile : Image {
  41. // constructors
  42. [MonoTODO]
  43. public Metafile (Stream stream)
  44. {
  45. throw new NotImplementedException ();
  46. }
  47. [MonoTODO]
  48. public Metafile (string filename)
  49. {
  50. throw new NotImplementedException ();
  51. }
  52. [MonoTODO]
  53. public Metafile (IntPtr henhmetafile, bool deleteEmf)
  54. {
  55. throw new NotImplementedException ();
  56. }
  57. [MonoTODO]
  58. public Metafile (IntPtr referenceHtc, EmfType emfType)
  59. {
  60. throw new NotImplementedException ();
  61. }
  62. [MonoTODO]
  63. public Metafile (IntPtr referenceHtc, Rectangle frameRect)
  64. {
  65. throw new NotImplementedException ();
  66. }
  67. [MonoTODO]
  68. public Metafile (IntPtr referenceHtc, RectangleF frameRect)
  69. {
  70. throw new NotImplementedException ();
  71. }
  72. [MonoTODO]
  73. public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader)
  74. {
  75. throw new NotImplementedException ();
  76. }
  77. [MonoTODO]
  78. public Metafile (Stream stream, IntPtr referenceHtc)
  79. {
  80. throw new NotImplementedException ();
  81. }
  82. [MonoTODO]
  83. public Metafile (String fileName, IntPtr referenceHtc)
  84. {
  85. throw new NotImplementedException ();
  86. }
  87. [MonoTODO]
  88. public Metafile (IntPtr referenceHdc, EmfType emfType, string description)
  89. {
  90. throw new NotImplementedException ();
  91. }
  92. [MonoTODO]
  93. public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit)
  94. {
  95. throw new NotImplementedException ();
  96. }
  97. [MonoTODO]
  98. public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
  99. {
  100. throw new NotImplementedException ();
  101. }
  102. [MonoTODO]
  103. public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader, bool deleteWmf)
  104. {
  105. throw new NotImplementedException ();
  106. }
  107. [MonoTODO]
  108. public Metafile (Stream stream, IntPtr referenceHdc, EmfType type)
  109. {
  110. throw new NotImplementedException ();
  111. }
  112. [MonoTODO]
  113. public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect)
  114. {
  115. throw new NotImplementedException ();
  116. }
  117. [MonoTODO]
  118. public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect)
  119. {
  120. throw new NotImplementedException ();
  121. }
  122. [MonoTODO]
  123. public Metafile (string fileName, IntPtr referenceHdc, EmfType type)
  124. {
  125. throw new NotImplementedException ();
  126. }
  127. [MonoTODO]
  128. public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect)
  129. {
  130. throw new NotImplementedException ();
  131. }
  132. [MonoTODO]
  133. public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect)
  134. {
  135. throw new NotImplementedException ();
  136. }
  137. [MonoTODO]
  138. public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
  139. {
  140. throw new NotImplementedException ();
  141. }
  142. [MonoTODO]
  143. public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
  144. {
  145. throw new NotImplementedException ();
  146. }
  147. [MonoTODO]
  148. public Metafile (Stream stream, IntPtr referenceHtc, EmfType type, string description)
  149. {
  150. throw new NotImplementedException ();
  151. }
  152. [MonoTODO]
  153. public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit)
  154. {
  155. throw new NotImplementedException ();
  156. }
  157. [MonoTODO]
  158. public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
  159. {
  160. throw new NotImplementedException ();
  161. }
  162. [MonoTODO]
  163. public Metafile (string fileName, IntPtr referenceHdc, EmfType type, string description)
  164. {
  165. throw new NotImplementedException ();
  166. }
  167. [MonoTODO]
  168. public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit)
  169. {
  170. throw new NotImplementedException ();
  171. }
  172. [MonoTODO]
  173. public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
  174. {
  175. throw new NotImplementedException ();
  176. }
  177. [MonoTODO]
  178. public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type, string description)
  179. {
  180. throw new NotImplementedException ();
  181. }
  182. [MonoTODO]
  183. public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type, string description)
  184. {
  185. throw new NotImplementedException ();
  186. }
  187. [MonoTODO]
  188. public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
  189. {
  190. throw new NotImplementedException ();
  191. }
  192. [MonoTODO]
  193. public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
  194. {
  195. throw new NotImplementedException ();
  196. }
  197. [MonoTODO]
  198. public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
  199. {
  200. throw new NotImplementedException ();
  201. }
  202. [MonoTODO]
  203. public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, string description)
  204. {
  205. throw new NotImplementedException ();
  206. }
  207. [MonoTODO]
  208. public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
  209. {
  210. throw new NotImplementedException ();
  211. }
  212. [MonoTODO]
  213. public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, string description)
  214. {
  215. throw new NotImplementedException ();
  216. }
  217. [MonoTODO]
  218. public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type,
  219. string description)
  220. {
  221. throw new NotImplementedException ();
  222. }
  223. [MonoTODO]
  224. public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
  225. string description)
  226. {
  227. throw new NotImplementedException ();
  228. }
  229. [MonoTODO]
  230. public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type,
  231. string description)
  232. {
  233. throw new NotImplementedException ();
  234. }
  235. [MonoTODO]
  236. public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
  237. string description)
  238. {
  239. throw new NotImplementedException ();
  240. }
  241. // methods
  242. [MonoTODO]
  243. public IntPtr GetHenhmetafile()
  244. {
  245. throw new NotImplementedException ();
  246. }
  247. public MetafileHeader GetMetafileHeader()
  248. {
  249. return GetMetafileHeader (GetHenhmetafile () );
  250. }
  251. [MonoTODO]
  252. public static MetafileHeader GetMetafileHeader(IntPtr henhmetafile)
  253. {
  254. throw new NotImplementedException ();
  255. }
  256. [MonoTODO]
  257. public static MetafileHeader GetMetafileHeader(Stream stream)
  258. {
  259. throw new NotImplementedException ();
  260. }
  261. [MonoTODO]
  262. public static MetafileHeader GetMetafileHeader(string fileName)
  263. {
  264. throw new NotImplementedException ();
  265. }
  266. [MonoTODO]
  267. public static MetafileHeader GetMetafileHeader(IntPtr henhmetafile, WmfPlaceableFileHeader wmfHeader)
  268. {
  269. throw new NotImplementedException ();
  270. }
  271. [MonoTODO]
  272. public void PlayRecord(EmfPlusRecordType recordType, int flags, int dataSize, byte[] datawmfHeader)
  273. {
  274. throw new NotImplementedException ();
  275. }
  276. // properties
  277. }
  278. }