
-----------------------------------
greenapplesodaex
Sat Mar 25, 2006 8:46 pm

drawing on screen from image file in c#
-----------------------------------
i have a couple questions:

- I'm wondering if there's a way to "print"/draw an image from file onto screen, without using pictureBox, is that possible? and will that have a faster update than using pictureBox?

- If I want to get mouse position, how can I do that when the mouse is over some other object? (say i have a label displaying my mouse position, but it only works with my mouse is on the form, if it rolls over a label or something, it will stop getting mouse position) how do i get around this?

thanx in advance

p.s. should we have a c# section in the forum?

-----------------------------------
Tony
Sat Mar 25, 2006 9:11 pm


-----------------------------------
well I suppose an alternative would be to render a plane, textured with the image :lol: 

How are you getting your mouse's position now?

The general policy for creation of new forums is to wait until enough interest in generated in [GP]/[GD] and then just move those posts over.

-----------------------------------
greenapplesodaex
Sat Mar 25, 2006 9:16 pm

re
-----------------------------------
hmm, DrawImageUnscaled() draws without using pictureBox, but the refresh rate is kinda low when I move the pic (maybe there's a move functions so i dont have to redraw the whole image?)

o yeah, is there a layer control for this?

im using private void OnMouseMoveEvent(object sender,MouseEventArgs e) to get my mouse position

-----------------------------------
iker
Sun Mar 26, 2006 2:27 pm


-----------------------------------
you should check out the [url=www.mdsn.microsoft.com]microsoft software development network if your having problems. They have full open source and help in the website. Very helpfull I've found. Also, try the [url=www.mdsn.microsoft.com/coding4fun]coding for fun section too. Has alot of usefull tools and applications.

-----------------------------------
greenapplesodaex
Sun Mar 26, 2006 7:08 pm

re
-----------------------------------
someone suggested using directx9 sdk, but i havent have luck finding the tut i need

basically, im looking for tut that will teach me to move sprites/images around with a scrolling background. (smooth scrolling that is.)

thanx

-----------------------------------
iker
Sun Mar 26, 2006 7:29 pm


-----------------------------------
All the directX sdk tutorials are on the msdn website. The coding for fun section has alot of tutorials for everything, such as the [url=http://msdn.microsoft.com/coding4fun/gamedevelopment/]game development section. Has tutorials for all of visual studio languages aswell as vc#.

-----------------------------------
greenapplesodaex
Sun Mar 26, 2006 8:48 pm


-----------------------------------
o wow thanx alot
