Contents Up Previous Next

Metafile device context

A metafile device context is used for creating a metafile. The programmer should create the metafile device context, close it to return a metafile, delete the device context, use the metafile (the only valid thing to do with it currently is to place it on the clipboard, and then delete the metafile.

These functions are only available under Windows.

See also Metafile.

metafile-dc-create
metafile-dc-close


metafile-dc-create

long ( metafile-dc-create optional string filename)

Creates a metafile device context and returns its ID.

filename is the file to be used if creating a disk-based metafile. Usually this will be zero or absent, and an in-memory metafile will be created.


metafile-dc-close

long ( metafile-dc-close long id)

Closes the metafile device context and returns a metafile. The device context should no longer be used after this call is made, and it should be deleted.

See Metafile.