If you export a metafile and know the resolution of the device which was used as reference to creat that metafile, please avoid the function DrawMetafile and use the 'Ex' function instead.
Pass the resolution of the device as last 2 parameters like this: DrawMetafileEx(0,0,0,0, metafile_handle, xres, yres );
For example if you export metafiles from WPForm use
meta := FD.GetMetafile(i); WPPDFPrinter1.DrawMetafileEx(0,0,0,0,meta.Handle, Screen.PiixelsPerInch, Screen.PiixelsPerInch ); meta.Free;
|