Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 drawing on screen from image file in c#
Index -> General Programming
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
greenapplesodaex




PostPosted: Sat Mar 25, 2006 8:46 pm   Post subject: 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?
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sat Mar 25, 2006 9:11 pm   Post subject: (No subject)

well I suppose an alternative would be to render a plane, textured with the image Laughing

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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
greenapplesodaex




PostPosted: Sat Mar 25, 2006 9:16 pm   Post subject: 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




PostPosted: Sun Mar 26, 2006 2:27 pm   Post subject: (No subject)

you should check out the 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 coding for fun section too. Has alot of usefull tools and applications.
greenapplesodaex




PostPosted: Sun Mar 26, 2006 7:08 pm   Post subject: 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




PostPosted: Sun Mar 26, 2006 7:29 pm   Post subject: (No subject)

All the directX sdk tutorials are on the msdn website. The coding for fun section has alot of tutorials for everything, such as the game development section. Has tutorials for all of visual studio languages aswell as vc#.
greenapplesodaex




PostPosted: Sun Mar 26, 2006 8:48 pm   Post subject: (No subject)

o wow thanx alot
Display posts from previous:   
   Index -> General Programming
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: