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.
Jump to Post
Can you provide an example of what you're doing in code? I don't quite understand you.
Jump to Post
I suggest you create an object that records coordinates and rotation. Inside that object let it have its own drawstring method that calls the
Graphics.DrawStringmethod. 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
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.