CwExportRendered

Syntax:

call CwExportRendered sFileName sOptions

        sFilename       (string) The name and path of the image file
                        to save to.

        sOptions        (string) A string of colon or comma separated options
                (see Bitmap File Format Options).

Description:

This procedure renders the current project and saves it to a bitmap. The bitmap format is determined by the filename extension and may be any of P>G PRO's supported formats. Specifying "interlaced" or "transparent" invokes those options. All other options (e.g. size, resolution, crop rectangle) are determined by current settings.

Example:

call CwExportRendered 'c:\images\quux.jpg', 'interlaced:transparent'

call CwExportRendered 'c:\images\baz.gif, 'transparent,color depth=16 color'

call CwExportRendered 'c:\images\bobo.tif', ''

Remarks:

This routine can fail due to external circumstances (for example, the disk being full). Under such circumstances, the normal behaviour of a script is to raise a syntax error. If your script needs to be robust, you must trap the syntax error using SIGNAL. See example #2 of CwImportProject.

Functions by NAME

Index

Functions by PURPOSE