Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Rotating a font using GDI+

0 views
Skip to first unread message

Andre Moreira

unread,
May 17, 2002, 9:12:28 PM5/17/02
to
What is the equivalent for

CFont fontAPI;
fontAPI.CreateFont(24, 0, 900, 900, FW_BOLD, 0, 0, 0, 0, 0, 0, 0, 0,
"Tahoma");

in GDI + ?

Thankx

André


John Hornick [MS]

unread,
May 18, 2002, 11:21:59 AM5/18/02
to
Hi,

> What is the equivalent for
>
> CFont fontAPI;
> fontAPI.CreateFont(24, 0, 900, 900, FW_BOLD, 0, 0, 0, 0, 0, 0, 0, 0,
> "Tahoma");


GDI+ has two ways to rotate text:

StringFormaFlagsDirectionVertical which is limited to just one 90 degree
rotation, and Graphics.RotateTransform() (Graphics.SetTransform(), etc.).

The latter gives you the freedom to rotate, or skew, and/or translate
your text and other drawing at will.

Thanks,
- John
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Visit http://www.microsoft.com/security for current information on security.

0 new messages