Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的印象是经典的 Win16 元文件没有嵌入的大小或分辨率信息(除非有METAFILEPICT标题或类似信息) -GetWinMetaFileBits()参考 DC 有什么用?
METAFILEPICT
GetWinMetaFileBits()
SDK 文章中有详细记录:
此函数将增强的图元文件转换为 Windows 格式的图元文件,以便其图片可以显示在识别旧格式的应用程序中。 系统使用参考设备上下文来确定转换后的元文件的分辨率。
此函数将增强的图元文件转换为 Windows 格式的图元文件,以便其图片可以显示在识别旧格式的应用程序中。
系统使用参考设备上下文来确定转换后的元文件的分辨率。
和
Windows 格式的元文件不包含描述原始图片尺寸、创建图片的设备的分辨率、可选文本描述或可选调色板的综合标题。