RESTORE_CTM

short Escape(hdc, RESTORE_CTM, NULL, NULL, NULL)

The RESTORE_CTM printer escape restores the previously saved current transformation matrix.

The current transformation matrix controls the manner in which coordinates are translated, rotated, and scaled by the device. By using matrices, an application can combine these operations in any order to produce the desired mapping for a particular picture.

Parameters

hdc

HDC Identifies the device context.

Return Value

The return value specifies the number of SAVE_CTM escape calls without a corresponding RESTORE_CTM call. The return value is –1 if the escape is unsuccessful.

Comments

This escape is used only by PostScript printer drivers.

Applications should not make any assumptions about the initial contents of the current transformation matrix.