Important: The information in this document is obsolete and should not be used for new development.
Resetting a Mapping
You can use theResetMapping
function to reset a mapping. The following code example first uses theResetMapping
function to initialize the destination to the identity matrix, and then uses RotateMapping to calculate a resultant mapping that rotates by a given angle about a specified center.
gxMapping *RotationMap(gxMapping *dest, Fixed angle, gxPoint *center) { return RotateMapping(ResetMapping(dest), angle, center->x,center->y); }TheResetMapping
function is described on page 8-64.