GetPosition
Get Layer area
int GetPosition( double * pVals = NULL )
return layer position units
EX1
//Output the current layer's Left, top, width and height. void Layer_GetPosition_ex1() { GraphLayer gl = Project.ActiveLayer(); if(gl) { double xx[TOTAL_POS]; int nCurrent = gl.GetPosition(xx); printf("Current Settings\n%d:Left=%4.2f, Top=%4.2f, Width=%4.2f, Height=%4.2f\n", nCurrent, xx[LEFT_POS], xx[TOP_POS], xx[WIDTH_POS], xx[HEIGHT_POS]); } }
Layer::SetPosition, Layer::UnitsConvert
origin.h