trichview.com

trichview.support




Re: metafile size changes with save and load (RVF)


Return to index


Author

Message

Benedikt Weber

Posted: 09/26/2002 10:34:19


"Sergey Tkachenko" <[email protected]> wrote in message

news:[email protected]...

> 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