ModifyWorldTransform

  BOOL ModifyWorldTransform(hdc, lpXform, iMode)    
  HDC hdc; /* handle of device context */
  LPXFORM lpXform; /* address of transformation data */
  DWORD iMode; /* modification mode */

The ModifyWorldTransform function changes the world transformation for the given device context using the specified mode.

Parameters

hdc

Specifies the device context.

lpXform

Points to an XFORM structure that will be used to modify the world transformation for the given device context. 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;

iMode

Specifies how the transformation data will be used to modify the current world transformation. This parameter must be one of the following values:

value meaning

MWT_IDENTITY  
  Resets the current world transformation using the identity matrix. If this mode is specified, the XFORM structure pointed to by lpXform is ignored.
MWT_LEFTMULTIPLY  
  Multiplies the current transformation by the data in the XFORM structure. (The data in the XFORM structure becomes the left multiplicand while the data for the current transformation becomes the right multiplicand.)
MWT_RIGHTMULTIPLY  
  Multiplies the current transformation by the data in the XFORM structure. (The data in the XFORM structure becomes the right multiplicand while the data for the current transformation becomes the left multiplicand.)

Return Value

The return value is TRUE if the function is successful. Otherwise it is FALSE.

See Also

SetWorldTransform, XFORM