Write a slideshow screen saver using System.Drawing with transitions

Posted on 2004-11-22
Last Modified: 2010-04-23
I am new to VB.NET and would like to learn about the System.Drawing.*
I would like to do this by creating my own slide show screen saver using images from chosen directories and using transitions between slides.  What I think I need to know how to do is:

1. Get an image ( as many types as possible, .gif, .jpg, .png, etc)
2. Scale to full screen without distortion and using anti-aliasing
3. Display by transitioning from previous image (or black screen if this is the first)
4. Repeat at interval
5. quit when mouse moves or key is pressed

If you could show me a simple transition, I could figure out how to do more.

I would also like to be able to do a confiuration screen and preview, like in most screen savers
Any help to get me in the right direction would be appreciated.
Points awarded to best example
Question by:glover110697
    LVL 27

    Accepted Solution


    Here is where I found good examples for getting started in VB.Net
    Where is some System Drawing apps inside the samples


    Link for ASP programs...

    Author Comment

    I found the screen saver example in the 101samples file, but it seems to have two projects.  I assume I only need the one with the frmOptions.vb, frmScreenSaver.vb, and Options.vb.  I am not sure what the other one does.

    The project does not show how to do "Preview" nor does it show how to display an image or transition to a new image.  It draws random ellipses or rectangles on a screen.
    LVL 27

    Expert Comment

    The frmMain is for installing your screen saver. The preview is in your Control panel display properties
    where you can set the settings and preview. This is standard on all PC's.

    Author Comment

    The preview I am talking about is in the small window on the screen save saver tab.  This is not addressed in the MS example.  I realize the other preview is just an execution of the screensave code.
    The other items in my question have still not been addressed.

    Author Comment

    I really would like to get some pointers on how to create this screen saver.  I have the code displaying pictures in a given directory, but I still do not know how to do a transition from one to the other.  Right now I am just cycling thru them and diplaying each in turn.  Is there some way I could increase the points for this question to get an answer?  I gave it as high a point value as the system allowed when I first posted.

    Author Comment

    I am closing this question and will award the promised points.  Istill do not believe the question I asked was fully answered.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now