CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Apr 1999
    Location
    Florida
    Posts
    3

    transitioning between graphics

    I am interesting in writing a simple program that is like a photo album. One feature I would like to have is a slide show that has transition effects when going from one picture to the next...kinda like you can do with PowerPoint from one frame to the next.

    Is there a free or commercial add-on I could use that anybody knows of? If not, would anybody like to help brainstorm and come up with a pack of them with me? I would be happy to post resulting code out for public consumption.

    Thanks and keep up the great stuff!

    -Chris



  2. #2
    Guest

    Re: transitioning between graphics

    Hey man, it's impossible.

    Nobody here knows how to do it.

    Nobody here will answer your post.

    These people don't care if you want to do something like that, they'd rather program stupid databases.

    Just leave, find a different board, one that is concerned with game programming, because image transitions are important to game programmers, not stupid databases, and get them to help you.

    Then come back here, tell me, and I will thank you.


  3. #3
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: transitioning between graphics

    You can use arrays to make a slide show....use arrays for pictures...for example: For..Next function you can call each array and set it to move to specified place on form ..don't forget to "pause" with API call or timer's interval to make it look like a slide show
    I really never used arrays before but I saw something like "slide show" on the net long time ago and the author used arrays, so I thought I would mention that...

    Good luck


  4. #4
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: transitioning between graphics

    Hey, why don't you use normal name instead of Anonymous? Scared? Well one thing you are wrong about is that people can set anonymous posting to invisible so no one will answer you, second...people here will answer your question no matter what it's about.. starting from what is DIM statement to complex API calls....I always had my questions answered, or if no one answered then I found the solution myself, but so far you are the only one that I know of to think negatively about this discussion board


  5. #5
    Join Date
    Aug 1999
    Location
    India-Delhi
    Posts
    106

    Re: transitioning between graphics

    Chris,
    There is a solution. There is a freeware called PSB (Paint Shop Pro). This is free for one-two month of use. Never mind. This is enough time to get work done. With PSP, there is free animation shop attachment.
    What you do next, install the software. and Place all the photographs you wish to have transatition. Select your desired transition and then apply. You will see that there are more than 100 "created" photographs. Just name them individually and save them as any valid graphic format.

    Then Create an array and place all photo in it and have the show. The only thing I find that it is static. And Photo can not be dynamically added using prposed VB application.

    Just try... and let me know.



    Santulan

  6. #6
    Join Date
    Jun 1999
    Location
    England
    Posts
    86

    Re: transitioning between graphics

    I have my own source code for tons of transitions. Such as Vertical Blinds, Horizontal Blinds, Lower Down, Raise Up. 50-50 split vertical and horizontal. Please leave your email address and a list of the effects you really want and I will gladly send you upto 10 transitions. But, I am sure with the code I will give you you could go on to develop your own.


  7. #7
    Join Date
    Jun 1999
    Location
    England
    Posts
    86

    Re: transitioning between graphics

    Go away we don't need your type round here. This is a friendly site populated by people with good manners who offer their help freely to others in need.. whatever their angle.



  8. #8
    Join Date
    Jan 2003
    Posts
    23

    transition with vb objects

    Hi there

    Is it possible to have a transition with vb objects rather than graphics? Lets say you wanted to show a textbox which would expand from a fitting one word to one that shows a whole paragraph?

    What I am trying to create is a program with a glossary of terms but I don't want a big ugly textbox taking over my form, unless of course the user clicks on it?

    Thanks

  9. #9
    Join Date
    Jun 1999
    Location
    England
    Posts
    86

    Tranisitions With Objects

    Hi pobuckley. Yes of course you could do transitions with objects as well as graphics.

    Lets say you have some text in a textbox called text1. Lets find the width of the text it contains using the TextWidth function. This will find the width of the longest line if the text includes line feeds in it.

    w= TextWidth(Text1)


    Now you could you a for..next loop to expand the textbox width from its current width to its new width. You can also use the TextHeight function and increase the width of the textbox's dimensions until they are as you require.


    Dim sometext
    sometext = "Hello World today is Tuesday." & vbCrLf
    sometext = sometext + "Tomorrow of course is another day" & vbCrLf
    sometext = sometext + "and next year is so far away"

    Text1 = sometext
    Text1.Width = TextWidth(sometext) + TextWidth(sometext) * 0.2
    Text1.Height = TextHeight(sometext) + TextHeight(sometext) * 0.2.

    I have added an additional 20% of the width of the text because I am too lazy to find out what the border width of the text box is to allow the text to be properly displayed in a textbox with a border.

    Andyb

  10. #10
    Join Date
    Feb 2003
    Posts
    417
    You could use the Alphablend API from within a timer where in you increase the opacity factor everytime in the timer event. But alphablending is supported only on Win2K platform and above.

  11. #11

    image

    Try VideoEdit Control, it can add a number of image ,sound and merge to avi or wmv file. Like Slide Show.


    http://www.viscomsoft.com/videoedit.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured