Exemple #1
0
        public static MetafileHeader GetMetafileHeader(Stream stream)
        {
            Metafile       file   = new Metafile(stream);
            MetafileHeader header = file.GetMetafileHeader();

            file.Detach();
            return(header);
        }
Exemple #2
0
        public static MetafileHeader GetMetafileHeader(string fileName)
        {
            Metafile       file   = new Metafile(fileName);
            MetafileHeader header = file.GetMetafileHeader();

            file.Detach();
            return(header);
        }
Exemple #3
0
        // Convenience wrappers for "GetMetafileHeader".
        public static MetafileHeader GetMetafileHeader(IntPtr henhmetafile)
        {
            Metafile       file   = new Metafile(henhmetafile, false);
            MetafileHeader header = file.GetMetafileHeader();

            file.Detach();
            return(header);
        }
Exemple #4
0
        public static MetafileHeader GetMetafileHeader
            (IntPtr hmetafile, WmfPlaceableFileHeader wmfHeader)
        {
            Metafile       file   = new Metafile(hmetafile, wmfHeader);
            MetafileHeader header = file.GetMetafileHeader();

            file.Detach();
            return(header);
        }