Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top