WWrite_META Function (Windows)

Saves the contents of a graphics window to a file as an enhanced-format metafile (EMF).

Usage

status = WWRITE_META( [window_index] )

Input Parameters

window_index — (optional) The index of the window from which the graphics are to be saved. If not specified, the current window is assumed.

Returned Value

status — A value indicating success or failure of the write; expected values are:

< 0 — Indicates an error.

0 — Indicates a successful write.

Keywords

Filename — A string containing the name of the output EMF file. If not specified, a file named wave.emf is created in the current directory.

Interactive — If present and nonzero, open the Import Graphics dialog box. This dialog box lets you interactively create or select an export file.

Discussion

This function saves the contents of a graphics window in an EMF file.

Example

In this example, the contents of window 2 are written to an EMF format file called image.emf.

WINDOW, 2, 
SHADE_SURF, DIST(40)
status = WWRITE_META(2, Filename='image.emf')

See Also

WREAD_META

The graphics window Control menu includes a command that exports EMF graphics to a file. For information on the Control menu, see the PV‑WAVE User Guide.