BOOL GetWorldTransform(hdc, lpXform) | |||||
HDC hdc; | /* handle of device context | */ | |||
LPXFORM lpXform; | /* address of structure receiving transformation | */ |
The GetWorldTransform function retrieves the current world-space to page-space transformation.
hdc
Identifies the device context.
lpXform
Points to an XFORM structure that receives the current world-space to page-space transformation. The XFORM structure has the following format:
typedef struct tagXFORM /* xfrm */
{ FLOAT eM11;
FLOAT eM12;
FLOAT eM21;
FLOAT eM22;
FLOAT eDx;
FLOAT eDy;
} XFORM, *PXFORM, FAR *LPXFORM;
The return value is TRUE if the function is successful. Otherwise it is FALSE.
The precision of the transformation may be altered if an application calls ModifyWorldTransform prior to calling GetWorldTransform. (This is due to the fact that the internal format for storing transformation values uses a higher precision than the float.)
SetWorldTransform, ModifyWorldTransform, XFORM