TiVCLComponent.SaveImageToMetaFile

TiVCLComponent See Also

Saves the current image of the component to an enhanced metafile.

procedure SaveImageToMetaFile(FileName : String);

Description

Use SaveImageToMetaFile to save the current image of the component to a metafile. The enhanced metafile format is a static, compressed, vector based representation of the component. It can be imported by many popular documentation and image editing software (Such as Microsoft Office, Paint Shop Pro, PhotoShop, etc) and can be resized without the resizing effects generally seen with pixel based image file formats.

Note: The metafile saved by this procedure is properly formatted. However, some applications have problems supporting metafile formats correctly. It is recommended that you use True Type fonts if your component supports text (such as scale labels) to get the best results when resizing the image in another program.

Example

Delphi

iComponent.SaveImageToMetaFile('c:\temp\test.emf');

C++ Builder

iComponent->SaveImageToMetaFile("c:\temp\test.emf");

Contents | Index | Previous | Next