How to program an animated background application in C #

I would like to start the Summer project just for the sake of improving programming skills. For this, I thought it would be nice if I could program an application that would run an animated image or something similar on a Windows machine as wallpaper.

For example, I would like to replace the full screen resolution with some random color squares that will individually change color at certain intervals. However, I just realized that I did not know how to start, and all the programming that I did in the first two years of training is useless for this particular task.

Can anyone put me in the right direction how to do this. I would like to read something, but now I know what will help me with this.

To make it clearer WHAT YOU NEED TO KNOW before I start this project?

Sincerely.

+3
source share
3 answers

You want to create an image and save it as a kind of image file. Then use SystemParametersInfo () to set the background pass to SPI_SETDESKWALLPAPER as a flag, as well as one of the other parameters of your saved file.

Sample code here: http://social.msdn.microsoft.com/Forums/en-US/windowssdk/thread/8a07f1f9-30ba-40ea-9eef-5f405d666849/

To change it at intervals, you can set a timer that forces you to regenerate a new image at the specified delays, and then call SystemParametersInfo () again as before.

, .bmp.

+4

The full-screen bit is not so complicated - just run the Windows Forms or WPF project and edit the window, make it as maximum as possible, always on top, without borders, without a title. Because of this, everything becomes more complex, and you have to read the drawing and graphics using forms or WPF.

+1
source

All Articles