Jump to content

dynamic size of image


Recommended Posts

How can i get the height and width of a picture(s) so that I can pass it to SplashImageOn and have the size be dynamically changed?

For $i = 1 to $updates Step 1
    InetGet($arrIMG[$i], "c:\logo" & $i &".jpg")
    SplashImageOn("Splash Screen", "c:\logo" & $i &".jpg",200,300,-1,-1,1)
    Sleep(3000)
    SplashOff()
Next
Link to comment
Share on other sites

Try to download the "Images info reader", which I think you can use for your task.

http://www.autoitscript.com/fileman/users/Lazycat/files/image_get_info.zip

It's also newer than "Images size reader"...

Excellent. One more question, is there any way to make a splash image linkable to a website (so when it popped up you could click and go wherever)? Or if not, is there anyway to do this in a GUI? Thanks.
Link to comment
Share on other sites

Sure. Make a GUI with the picture in it. Then you make a timeout-system using TimerInit and

TimerDiff, and in the script's main-loop you check if GUIGetMsg equals the picture-control.

If it does you run the link.

If you haven't touched the GUI-part of AutoIt just check out some simple examples in the help-

file or here on the forum, and see what you end up with. If you have any problems with some

part just come back here in this topic and ask.. Good luck.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...