PDA

Click to See Complete Forum and Search --> : Loading a picture into a picture box


kingfish
Mar 8th, 2000, 08:45 AM
I am creating a screen saver (isn't everyone). I am trying to create my own transition effects. Lets say the effect is horizontal blinds, I want to "blind" from one picture directly into another. I am not sure how exactly to do this. To make it even trickier the pictures can be any size.

What I am trying to do is fill in around all my pictures with my background color to make them all the same size. I have three picture boxes. The first is autosized and the picture is loaded into it. The second picture is maximized. I use the paintpicture command to paint the picture from the first picture box to the center of the second. The third picture box is another maximized picture box that I am displaying my final picture in. Problem is when I try to paint the entire image in picture box 2 (the original image and the background around it making it the size of the screen) using paint picture it says invalid picture. Does any of this make sense?? There probably is a better way to display images(I am open for any suggestions).

Thanks,

Kingfish