2.2.4.20.12 GraphPage::Resize


Description

Change page width and height.

Syntax

int Resize( int nNewWidth, int nNewHeight, int nMinPrecentResizeElements = 10 )

Parameters

nNewWidth
[input] logical pixels in page width
nNewHeight
[input] logical pixels in page height. This value is ignored if page is fixed aspect ratio, or pass in -1 to keep existing aspect ratio
nMinPrecentResizeElements
[input] minimum percent in width change to trigger element resizing to keep the same look, passing >100 to disable element resizing

Return

return 1 if element resized, 0 if not.

Examples

EX1

void GaphPage_Resize_ex1()
{
    GraphPage gp = Project.Pages();
    if(!gp)
    	return;
    
    gp.Resize(200, -1);
}

Remark

See Also

Header to Included

origin.h