The GetWorldTransform function retrieves the current world-space to page-space transformation.
BOOL GetWorldTransform(
HDC hdc, |
// handle to the device context |
LPXFORM lpXform |
// pointer to the structure receiving transformation |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The precision of the transformation may be altered if an application calls the ModifyWorldTransform function prior to calling GetWorldTransform. (This is because the internal format for storing transformation values uses a higher precision than a FLOAT value.)