broodplank Posted February 6, 2006 Posted February 6, 2006 is it posible to center an image i already got this: $destination = @ScriptDir & "\image.jpg" SplashImageOn("Splash Screen", $destination,250,83,400,300,1) WinSetTrans("Splash Screen", "", 500) Sleep(3000) SplashOff() but thats almost centerd however is it posible on any resolution ?
Helge Posted February 6, 2006 Posted February 6, 2006 (edited) Typed directly into the browser, but this should work :SplashImageOn("Splash Screen", $destination, _(@DesktopWidth / 2) - (400 / 2), (@DesktopHeight / 2) - (300 / 2), _400, 300, 1)I split the code to three lines as it was too long... I also used a quote-box instead of acode-box to make colors work. I've also colored the width in blue and the height in redto make it easier to understand. Edited February 6, 2006 by Helge
jaenster Posted February 6, 2006 Posted February 6, 2006 $destination = "Your image xd" $grootex =200 $grootey = 83 SplashImageOn("sd",$destination,$grootex , $grootey,(@DesktopWidth/2)-($grootex/2),(@DesktopHeight/2)-($grootey/2)) This works to -jaenster
jaenster Posted February 6, 2006 Posted February 6, 2006 Note , Do you want to remove that title bar make use this instand my old post SplashImageOn("sd",$destination,$grootex,$grootey,(@DesktopWidth/2)-($grootex/2),(@DesktopHeight/2)-($grootey/2),1) -jaenster
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now