by Saed abumokh (7 Submissions)
Category: Graphics
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(5 Votes)

This example of code shows how to rotate the text correctly, the CreateFont function rotates the text around the text starting point, this code demonstrates rotating text around the text center point using CreateFont function and correcting the point to print the text and rotate
API DeclarationsTextOut,GetTextAlign,GetTextColor,SetTextAlign,SetTextColor,MulDiv,
GetDeviceCaps,GetTextExtentPoint32,CreateFont,SelectObject,DeleteObject.
Download Rotate Text Correctly (13 KB)