I am working on a project where I need my drawn animation with letter on the form - and check when falling letter reaches a certain position.

The thing is that I would like to use the method IntersectsWith but can not do that since the DrawString() method is not an object is just a void method.

What do you suggest how can I check whether text reaches certain position?

I want my letters which are drawn to the form to act like Object's - so that I can do things with them afterwards.

有帮助吗?

解决方案

You can use Graphics.MeasureString method, that returns bounds of specified string on given system at runtime. So having that information in your hands you can also make your calculations.

In alternative you van use Piccolo framework, that have much more then that, and also works pretty well.

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