# cdCanvasPlay

Definition: | include pGUI.e integer res = cdCanvasPlay(cdCanvas canvas, cdContext context, integer xmin, xmax, ymin, ymax, atom_string data)
Description: | Metafile Interpretation
pwa/p2js: | Not supported.
Comments: | Interprets the graphical contents (primitives and attributes) in a given driver and calls equivalent functions of the CD library using the given canvas. The primitives are drawn inside the region defined by the given limits. If limits are 0 (xmin, xmax, ymin and ymax) the primitives will be drawn with their coordinates having the original values in the file. The WD version will simply use the given limits in World Coordinates (since 5.9). Returns CD_OK or CD_ERROR. Only some drivers implement this function: CD_CLIPBOARD = Clipboard, data is ignored. CD_EMF = Windows Enhanced Metafile, data is a ''filename''. Works only in the MS Windows system. CD_WMF = Windows Metafile, data is a ''filename''. Works only in the MS Windows system. CD_CGM = Computer Graphics Metafile ISO, data is a ''filename''. CD_METAFILE = CD Metafile, data is a ''filename''. CD_PICTURE = CD Picture, data is a cdCanvas of the Picture canvas. A filename can be either a normal string or the equivalent of an allocate_string() result, ie an atom pointer.