tree_write_image_export_settings

 

Description

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

Syntax

bool tree_write_image_export_settings( TreeNode & trSettings, LPCSTR lpcszFormat, bool bClearSections = false )

Parameters

trSettings
[input]tree node containing the settings
lpcszFormat
[input]pointer to the image format whose settings are to be written
bClearSections
[input] true will clear eixsting content of the ini section, false will not

Return

true for success, false for error

Examples

EX1

void tree_write_image_export_settings_ex1()
{
        Tree tr;
        bool bRet = tree_read_image_export_settings(tr, "bmp");
        if ( bRet )
        {
                bRet = tree_write_image_export_settings(tr, "bmp", true);
                if ( bRet )
                {
                        out_str("successful!");
                }
                else
                        out_str("failure");
        }
        else
                out_str("error");
}

Remark

See Also

header to Include

origin.h

Reference