Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
We are using Visual Studio 2008 design software for an embedded Windows XP computer. The development team is wanting to use a custome jpeg or bmp for a background image. This can be added as a resource file under backgroundImage in Vistual Studio. The screen resolution we are using is 640x480.

The problem is that the user experience for the screen update is too slow. If the backColor is used it is much faster, of course. Besides a hardware update does anybody know of a way to speed this up?
Posted
Comments
Unareshraju 21-May-12 9:06am    
hi john,
i think can we able to do increase/decrease the time in the properties .
i am not sure but i am comaring with addrotator control in that we can able to set the time. please u can observe in this way.........
John_Gibbs 21-May-12 9:52am    
I do not see way of changing the time in the properties.

It's hard to say without code. An issue could be that you need the screen to update and instead of updating only a part of the screen you update all of it. For this you could look into Control.Invalidate.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.invalidate%28v=vs.71%29.aspx[^]

Another big problem might be that you load the image from resource to display it and then discard it again immediately, meaning it would need to reload every time. Instead you could load it when the application starts, keep it in memory and use that.

Good luck!
 
Share this answer
 
Comments
BobJanova 21-May-12 11:03am    
I second the suggestion to look for loading and throwing away. Simply using a static image shouldn't be slow enough to notice.
Since the low-end computer can present display glitches due to the drawing refresh, you should opt for a partial drawing instead of refreshing the entire window.

Painting the entire window once can never prevent from this problem no matter how good is the algorithm.
 
Share this answer
 
The only way to speed it up is to either upgrade the hardware or don't use an image as a background.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900