Important: The information in this document is obsolete and should not be used for new development.
Resetting a Mapping
You can use theResetMappingfunction to reset a mapping. The following code example first uses theResetMappingfunction 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); }TheResetMappingfunction is described on page 8-64.