4D-SVG

SVG_Export_to_picture

SVG_Export_to_picture ( svgObject {; exportType} ) -> Function result

Parameter Type   Description
svgObject SVG_Ref SVG object reference
exportType Longint 0 = Do not store data source 1 (default) = Copy data source 2 = Own data source
Function result Picture Picture rendered by SVG engine

Description

The SVG_Export_to_picture command returns the picture described by the SVG structure referenced by svgObject.

The optional exportType parameter can be used to specify the way in which the XML data source must be handled by the command. For more information about this parameter, refer to the description of the 4D SVG EXPORT TO PICTURE command. If this parameter is omitted, the default value is 1, Copy XML Data Source.

Example

 svgRef:=SVG_New(500;200;“Test component”)
 ...
 MyPicture:=SVG_Export_to_picture(svgRef;0)
 
 SVG_CLEAR(svgRef)

See also

SVG_Export_to_XML
SVG_Open_picture
SVG_SAVE_AS_PICTURE