TCustomTeePanel.SaveToMetafile

TCustomTeePanel.SaveToMetafile
TCustomTeePanel

procedure SaveToMetafile(Const FileName: String);

Unit
TeeProcs

Description
The SaveToMetafile method creates a new WMF file and stores Chart drawing instructions on it. WMF's are created to be "placeable" and prefixed with the Aldus header. That means the image can be resized when embedded in container applications like MS Word. The Metafile format has the advantadge of being smaller than equivalent saved images in bitmap format. Disadvantages are that some Windows GDI (graphic API) calls can't be used with metafiles. Clipping points from chart bounds is not possible with metafiles.

The new EMF format (using the 32bit version) promises to be a much better format supporting more graphic instructions.

Example
:

This code creates a new WMF metafile:

Chart1.SaveToMetafile( 'c:\mychart.wmf' );