Page 1 of 1
CADImport. ExportToMetafile() on Windows 8
Posted: 26 Jan 2015, 19:06
by fralam
On Winwdows 8,
The method CADImport. ExportToMetafile( aName, aCurRect ) work corectly when Windows is set to 96 dpi or 120 dpi. But at 150 dbi, the scale of drawing is not good. The drawing et too smal.
I try to set the DPI before save, this did not settle the problem.
How can I correct this problem?
Re: CADImport. ExportToMetafile() on Windows 8
Posted: 27 Jan 2015, 16:36
by support
Hello Francois,
We recommend to enlarge a rectangle area of the output metafile (aCurRect) by using some multiplier:
Code: Select all
double ratio;
...
DRect aCurRect = new DRect(0, 0, cadImage.AbsWidth * ratio, cadImage.AbsHeight * ratio);
Mikhail
Re: CADImport. ExportToMetafile() on Windows 8
Posted: 27 Jan 2015, 23:24
by fralam
There are a problem when the screen resolution is 2880x1620 (on Windows 8 ). I generate de bad EMF file with your exemple "ViewerDemo.exe".
I think that you have a bug

Re: CADImport. ExportToMetafile() on Windows 8
Posted: 28 Jan 2015, 14:03
by support
Hello Francois,
Thank you for the information.
We could reproduce this problem on lower screen resolution (Windows 7) when setting "Maximum recommended size" option in the Size dialog box in ViewerDemo application. Try the "Current size" option, it generates a correct EMF file with smaller sizes.
Mikhail