public static MetafileHeader GetMetafileHeader(Stream stream) { Metafile file = new Metafile(stream); MetafileHeader header = file.GetMetafileHeader(); file.Detach(); return(header); }
public static MetafileHeader GetMetafileHeader(string fileName) { Metafile file = new Metafile(fileName); MetafileHeader header = file.GetMetafileHeader(); file.Detach(); return(header); }
// Convenience wrappers for "GetMetafileHeader". public static MetafileHeader GetMetafileHeader(IntPtr henhmetafile) { Metafile file = new Metafile(henhmetafile, false); MetafileHeader header = file.GetMetafileHeader(); file.Detach(); return(header); }
public static MetafileHeader GetMetafileHeader (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader) { Metafile file = new Metafile(hmetafile, wmfHeader); MetafileHeader header = file.GetMetafileHeader(); file.Detach(); return(header); }