2.2.4.24.24 Layer::PageToWorld

Description

Converts the page (i.e. paper, logical) coordinates into the world (i.e. axis scale) coordinates.

Syntax

BOOL PageToWorld( double & rXWorld, double & rYWorld, int nXPage, int nYPage )

Parameters

rXWorld
[output]the result X world coordinate
rYWorld
[output]the result Y world coordinate
nXPage
the X page coordinate
nYPage
the Y page coordinate

Return

TRUE if success, otherwise FALSE.

Examples

EX1

//Output the axis scale of x page coordinate and y page coordinate.
void Layer_PageToWorld_ex1()
{
    GraphPage gp;
    gp.Create();
    GraphLayer gl = gp.Layers(0);
 
    double xmin, ymax;
    gl.PageToWorld(xmin, ymax, 2618, 2628);    
    out_double("axis scale of x is ", xmin);
    out_double("axis scale of y is ", ymax);
}

Remark

See Also

Layer::WorldToPage

Header to Include

origin.h