How to figure out with object created a graphics

  • Thread starter Thread starter Crirus
  • Start date Start date
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...
 
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.
 
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
 
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.
 
Back
Top