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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top