2 // System.Drawing.Imaging.Metafile.cs
4 // Author: Christian Meyer
5 // eMail: Christian.Meyer@cs.tum.edu
6 // Dennis Hayes (dennish@raytek.com)
8 // (C) 2002 Ximian, Inc. http://www.ximian.com
9 // Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 using System.Reflection;
33 using System.ComponentModel;
34 using System.Runtime.InteropServices;
36 namespace System.Drawing.Imaging {
38 [MonoTODO ("Metafiles, both WMF and EMF formats, aren't supported.")]
43 [Editor ("System.Drawing.Design.MetafileEditor, " + Consts.AssemblySystem_Drawing_Design, typeof (System.Drawing.Design.UITypeEditor))]
44 public sealed class Metafile : Image {
48 public Metafile (Stream stream)
50 throw new NotImplementedException ();
53 public Metafile (string filename)
55 throw new NotImplementedException ();
58 public Metafile (IntPtr henhmetafile, bool deleteEmf)
60 throw new NotImplementedException ();
63 public Metafile (IntPtr referenceHtc, EmfType emfType)
65 throw new NotImplementedException ();
68 public Metafile (IntPtr referenceHtc, Rectangle frameRect)
70 throw new NotImplementedException ();
73 public Metafile (IntPtr referenceHtc, RectangleF frameRect)
75 throw new NotImplementedException ();
78 public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader)
80 throw new NotImplementedException ();
83 public Metafile (Stream stream, IntPtr referenceHtc)
85 throw new NotImplementedException ();
88 public Metafile (String fileName, IntPtr referenceHtc)
90 throw new NotImplementedException ();
93 public Metafile (IntPtr referenceHdc, EmfType emfType, string description)
95 throw new NotImplementedException ();
98 public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit)
100 throw new NotImplementedException ();
103 public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
105 throw new NotImplementedException ();
108 public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader, bool deleteWmf)
110 throw new NotImplementedException ();
113 public Metafile (Stream stream, IntPtr referenceHdc, EmfType type)
115 throw new NotImplementedException ();
118 public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect)
120 throw new NotImplementedException ();
123 public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect)
125 throw new NotImplementedException ();
128 public Metafile (string fileName, IntPtr referenceHdc, EmfType type)
130 throw new NotImplementedException ();
133 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect)
135 throw new NotImplementedException ();
138 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect)
140 throw new NotImplementedException ();
143 public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
145 throw new NotImplementedException ();
148 public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
150 throw new NotImplementedException ();
153 public Metafile (Stream stream, IntPtr referenceHtc, EmfType type, string description)
155 throw new NotImplementedException ();
158 public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit)
160 throw new NotImplementedException ();
163 public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
165 throw new NotImplementedException ();
168 public Metafile (string fileName, IntPtr referenceHdc, EmfType type, string description)
170 throw new NotImplementedException ();
173 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit)
175 throw new NotImplementedException ();
178 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit)
180 throw new NotImplementedException ();
183 public Metafile (IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type, string description)
185 throw new NotImplementedException ();
188 public Metafile (IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type, string description)
190 throw new NotImplementedException ();
193 public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
195 throw new NotImplementedException ();
198 public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
200 throw new NotImplementedException ();
203 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
205 throw new NotImplementedException ();
208 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, string description)
210 throw new NotImplementedException ();
213 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
215 throw new NotImplementedException ();
218 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, string description)
220 throw new NotImplementedException ();
223 public Metafile (Stream stream, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type,
226 throw new NotImplementedException ();
229 public Metafile (Stream stream, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
232 throw new NotImplementedException ();
235 public Metafile (string fileName, IntPtr referenceHdc, Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type,
238 throw new NotImplementedException ();
241 public Metafile (string fileName, IntPtr referenceHdc, RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
244 throw new NotImplementedException ();
249 public IntPtr GetHenhmetafile ()
251 throw new NotImplementedException ();
254 public MetafileHeader GetMetafileHeader ()
256 return GetMetafileHeader (GetHenhmetafile () );
259 public static MetafileHeader GetMetafileHeader (IntPtr henhmetafile)
261 throw new NotImplementedException ();
264 public static MetafileHeader GetMetafileHeader (Stream stream)
266 throw new NotImplementedException ();
269 public static MetafileHeader GetMetafileHeader (string fileName)
271 throw new NotImplementedException ();
274 public static MetafileHeader GetMetafileHeader (IntPtr henhmetafile, WmfPlaceableFileHeader wmfHeader)
276 throw new NotImplementedException ();
279 public void PlayRecord (EmfPlusRecordType recordType, int flags, int dataSize, byte[] datawmfHeader)
281 throw new NotImplementedException ();