开发者

DPI for EMF files

Do EMF files have a DPI that can be set? I have an application that allows saving an image in multiple formats (including E开发者_JAVA技巧MF). I allow the user to specify the resolution/DPI for the image(s). However, I cannot find a way to do this for a MetaFile in C#. Is this possible or does EMF not have a DPI since it is a vector graphics format?


According to the MS-EMF spec, no. But ‘EMF plus’ extensions (MS-EMFPLUS) have a header with LogicalDpiX and LogicalDpiY. This format is analogous to GDI+. I don't know what software supports it for import/export though.


Metafiles do not have a DPI because they do not have dots - it is a vector graphics format. Metafiles do have size, which is presumably what you want. You can set the size of a metafile (in HIMETRIC) when you call the Metafile constructor.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜