tree_read_image_export_settings

 

Description

Read the export settings, for a specified format, into a tree node.

Syntax

bool tree_read_image_export_settings( TreeNode & trSettings, LPCSTR lpcszFormat )

Parameters

trSettings
[output]tree node to receive the settings
lpcszFormat
[input]pointer to the image format whose settings are to be read

Return

true for success, false for error

Examples

EX1

//if we want to read the bmp(or jpg, etc..) image export setting, first you should 
//export it: new a graphpage, then "File -> Export Graphs...", set "Image Type" 
//as "Bitmap(*.bmp)" and change same setting you need and confirm. now, you can 
//run the following code to read the export settings.
void tree_read_image_export_settings_ex1()
{
        Tree tr;
        bool bRet = tree_read_image_export_settings(tr, "bmp");
        if ( bRet )
        {
                out_tree(tr);
        }
        else
                out_str("error");
}

Remark

See Also

header to Include

origin.h

Reference