Domanda

I need to draw text along a curved path/bezier. Does somebody happen to have a tutorial ready or even some sample code to digest?

Thx

Fortis

È stato utile?

Soluzione

There is already such a sample on MSDN, which although is C++, you may be able to adapt to C#.

From the description:

This sample shows how to use Direct2D and DirectWrite to render a string of text along an animated, non-linear geometric path. The app renders "Hello, World!" repeated several times in different languages along a Bezier curve. The font style and size is constant.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top