How to figure out with object created a graphics

C

Crirus

I have a function that take a graphics and draw something using that
graphics
Anyway, I can use diferent Graphics that are not located in the same
position on the screen coordinate, so I need to offset the image drawn
How can I figure out wich device created that graphic sent to my function?

The Graphics may be created from a bitmap or the one that come with paint
event..but I dont know wich is the one...
 
A

Armin Zingler

Crirus said:
I have a function that take a graphics and draw something using
that graphics
Anyway, I can use diferent Graphics that are not located in the
same position on the screen coordinate, so I need to offset the image
drawn How can I figure out wich device created that graphic sent to
my function?

The Graphics may be created from a bitmap or the one that come with
paint event..but I dont know wich is the one...

Why do you want to know this? Pass all the arguments that the procedure
needs to do it's job.
 
C

Crirus

yeah, but I have subsequent calls to different function so I have to pass
all the way that arg with no need until within last function
 
A

Armin Zingler

Crirus said:
yeah, but I have subsequent calls to different function so I have to
pass all the way that arg with no need until within last function

No, it isn't passed with "no need". You do need it because you have to pass
it to the next function.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top