CombineTransform

  BOOL CombineTransform(lpxformResult, lpxform1, lpxform2)    
  LPXFORM lpxformResult; /* address of combined-transformation */
  LPXFORM lpxform1; /* address of first transformation */
  LPXFORM lpxform2; /* address of second transformation */

The CombineTransform function concatenates two world-to-page space transformations.

Parameters

lpxformResult

Points to an XFORM structure which receives the combined-transformation.

lpxform1

Points to an XFORM structure which identifies the first transformation.

lpxform2

Points to an XFORM structure which identifies the second 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;

Return Value

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

Comment

Applying the resulting transform has the same effect as applying the first transform and then applying the second transform.

The three transforms do not have to be distinct. For example, lpxform1 can point to the same XFORM structure as lpxformResult.