I've to print .EMF files. As they come in different sizes and I need to print them in a fix-sized box, so I use RenderPicture to compute the width and height before printing. However, the RenderPicture doesn't compute the size correctly everytime. The rendered size and width/height ration vary from the those of the orignial EMF files.
e.g. VPE.RenderPicture (VFREE, VFREE, "image.emf", PIC_KEEPIMAGE) should give the original size of image.emf
VPE.RenderPicture (685, VFREE, "image.emf", 4) should give the undistorted height of the file relative to the height of 6.85cm
I've a EMF file with size 18cmx20cm, but the rendered size is 9cmx14.84cm.
Can I send in the picture for you to have a look?
Thanks very much.