|
|||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
IntroductionThis application uses various C# drawing functions to generate random images that can be used as wallpapers, etc.. BackgroundI started this program to teach myself the basic C# drawing functions. I kept getting more and more suggestions from friends and fans, and the project kept growing until I had quite a nice little program. Points of InterestThe const int SPI_SETDESKWALLPAPER = 20;
const int SPIF_UPDATEINIFILE = 0x01;
const int SPIF_SENDCHANGE = 0x2;
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, file_location,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
can lead to very spectacular crashes. If it is empty when the user clicks on "apply" then the computer is completely off in approximately 0 seconds. Just comment out the The anti-aliasing feature is also interesting, the difference is very evident. I wanted to build it in permanently, but then decided to leave it as an option because some things look better without anti-aliasing (i.e., pixel blocks->all colors). How to use the appNot much I can say here. You just have to try things out till you get a good image. Because it is all random, if you generate enough times, you'll get a good result. Layering the images usually produces cool results, especially with a pixel block background. The small picture mosaic is also a lot of fun - GIF images with a transparent background look especially cool. Enjoy!
|
||||||||||||||||||||||||||||||||||||||||||||