2.2.4.17.36 GraphLayer::SetScaleElements


Description

Set the scale elements related attributes of the layer

Syntax

BOOL SetScaleElements( int nScaleMode, double dFixedFactor = 1.0 )

Parameters

nScaleMode
[input] Specify the scale mode, 0 means Scale With Layer Frame, 1 means Fixed Factor mode.
dFixedFactor
[input] The fixed factor value, only used when nScaleMode is 1 and ignored when nScaleMode is 0

Return

Return TRUE if success, or FALSE if failed.

Examples

EX1

int SetScaleElements_ex1()
{
    GraphLayer        gl = Project.ActiveLayer();
    if(gl)
    {
        int        nScaleMode        = 1;
        double    dFixedFactor    = 0.8;
        BOOL bRet = gl.SetScaleElements(nScaleMode, dFixedFactor);
        ASSERT(bRet);
    }
    return 0;
}

Remark

See Also

GraphLayer::GetScaleElements

Header to Included

origin.h