trichview.com

trichview.support




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


Return to index


Author

Message

Sergey Tkachenko

Posted: 09/25/2002 20:12:59


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.

Word always uses size defined in MMWidth, MMHeigh.

It looks like Delphi TMetafile initially uses (Width,Height), but on

reloading adjusts (Width,Height) according to (MMWidth, MMHeigh).

I am afraid I can do nothing... The only way to prevent it - explicitly

define image width and heigh via RichView extra item properties (RichView

does it automatically for metafiles loaded from RTF).


PS: please send large files to my by e-mail, packaged in zip. Do not post

large attachments in the newsgroup.



> > Anyhow, the problems is with an enhanced metafile created from TChart.

> With

> > a normal metafile (*.wmf) there is no problem, only with a enhanced

> metafile

> > (*.emf). Actually when inserting (via menu Insert Picture) the EMF-file,

> it

> > is shown smaller than the WMF-file. After saving and reloading, the

> EMF-file

> > is the same size as the WMF-file. I have attached such a file. (Is it

> > possible that TChart creates a wrong EMF file?)

> >

>

> Actually when I insert the EMF and the WMF in Word, they have different

> sizes. This is the same behaviour as in RichViewEdit for "Insert

Picuture".

> When saved and reloaded in Word they keep their (different) sizes.

>

> Benedikt

>

>





Powered by ABC Amber Outlook Express Converter