![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Сохранение в emf [D6, XP]
Jimmy © (2007-09-23 12:22:00)Как сохранить векторное изображение в emf-файл?
Var ImMetaFile : TMetaFile;
ImMetaFile.SaveToFile('1.wmf');
Так я сохраняю его в wmf. Если написать
ImMetaFile.SaveToFile('1.emf');
будет создан emf-файл? И можно ли в двух словах сказать чем отличаются эти два формата?
Lacmus (2007-09-23 22:31:00) [1]Попробуйте использовать функцию EnumEnhMetaFile для ответа на свой вопрос, описание функции здесь http://msdn2.microsoft.com/en-us/library/ms534474.aspx
Jimmy (2007-09-23 21:35:00) [2]Большая просьба: поясните что значит ответ "EnumEnhMetaFile"!
Jimmy (2007-09-23 18:24:00) [3]Пожалуйста, поподробнее!
Lacmus (2007-09-23 16:40:00) [4]EnumEnhMetaFile
Jimmy (2007-09-23 16:32:00) [5]Спасибо! А почему эллипс, повернутый с помощью SetWorldTransform, в wmf сохраняется нормально, а в emf - некорректно (не повернутый)?
Lacmus (2007-09-23 16:12:00) [6]TMetafile.Enhanced Property
Description
Use Enhanced to determine how the metafile is stored on disk. If Enhanced is true, the metafile is stored as an .EMF (Win32 Enhanced Metafile). If Enhanced is false, the metafile is stored as a .WMF (Windows 3.1 Metafile, with Aldus header).
The in-memory format is always EMF. WMF has very limited capabilities; storing as WMF will lose information that would be retained by EMF. This property is set to match the metafile type when loaded from a stream or file. If loaded as WMF, then save as WMF.