문제

Do EMF files have a DPI that can be set? I have an application that allows saving an image in multiple formats (including EMF). 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top