63.1.3 Bitmap Rotation

Windows provides a function that you can use to copy a bitmap into a parallelogram; this function, PlgBlt, performs a bit-block transfer from a rectangle in a source device-context into a parallelogram in a destination device context. In order to rotate the bitmap, you must provide the coordinates (in world-space units) of the corners of the parallelogram that results from rotating the original rectangle. (For more information about rotation and the world-space see Chapter 73, “Coordinate Spaces and Transformations.”)