I was wondering is there any way to put my e.Graphics.DrawString() method into a variable(object) so that i can do some actions aftewards. The thing is that I ve got my words falling and rotating on the form. I ve also got a object wich is a Image which moves right or left. The problem is that i have to collect this words (falling and rotating) with my image object which i m able to move. I Know that the problem would have been much easier if i decided to populate images of string let s say into an array because i would have actual objects, but is there anyway to do that with the drawstring() already? I hope that i was clear enough.
castajiz_2
35
Posting Whiz
Recommended Answers
Jump to PostCan you provide an example of what you're doing in code? I don't quite understand you.
Jump to PostI suggest you create an object that records coordinates and rotation. Inside that object let it have its own drawstring method that calls the
Graphics.DrawString
method. That way you can keep track of it. Not sure there is any other way to do it and methods themselves cannot be objects.
All 5 Replies
Ketsuekiame
860
Master Poster
Featured Poster
castajiz_2
35
Posting Whiz
Ketsuekiame
860
Master Poster
Featured Poster
castajiz_2
35
Posting Whiz
castajiz_2
35
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.