WRead_META Function (Windows)
Loads an enhanced-format metafile (EMF) into a graphics window.
Usage
status = WRead_META( [window_index] )
Input Parameters
window_index — (optional) The index of the window to receive the graphics. If not specified, the current window is assumed. If no window is currently open, an error results.
Returned Value
status — A value indicating success or failure of the read; expected values are:
*< 0 — Indicates an error.
*0 — Indicates a successful read.
Keywords
Filename — A string containing the name of the enhanced-format metafile. If not specified, a file named wave.emf is assumed to be in the current directory.
Interactive — If present and nonzero, open the Import Graphics dialog box. This dialog box lets you interactively select a file to import.
Discussion
This function loads an enhanced-format metafile (EMF) into a graphics window. For more information on metafiles, see the description of the WINDOW procedure.
Example
Assume that the file map.emf is an enhanced-format metafile that was exported from a graphics application. The following command reads the contents of that file directly into a graphics window.
status = WREAD_META(2, Filename='map.emf')
See Also
The graphics window Control menu includes a command that imports EMF data from a file. For information on the Control menu, see the PV‑WAVE User’s Guide.