trichview.support
Re: metafile size changes with save and load (RVF) |
Author |
Message |
Benedikt Weber |
Posted: 09/26/2002 10:34:19 "Sergey Tkachenko" <svt@trichview.com> wrote in message news:3d920d80$1@support.torry.net... > I did not study deeply a metafile structure, but... > TMetafile has size defined in Width,Height (in pixels) and MMWidth, MMHeigh > (in 0.01 of millimeter). > These sizes can be different. I did some debugging with Metafiles. The problem seems to be the Inch property, which according to the help is not used for EMF files. The original EMF file has Inch=0; After saving and reloading, this propery has a value of 1440. The MMWidth is the same in the original and after loading but the Width (pixels) is different. This seems to depend on Inch. When Inch is set back to 0 after loading, the Width also takes back its original value. This is just for your information. If you think this is a problem with Delphi/Builder, I will report it, but I just wanted to make sure its not a problem in your code. I can easily fix it in my case my setting Inch to 0 after loading. I still have a similar problem though with RTF export as reported earlier. I hope you can fix that. Benedikt |
Powered by ABC Amber Outlook Express Converter