Sign in to follow this  
Followers 0
broodplank

centering an image?

5 posts in this topic

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 ? :lmao:

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 a

code-box to make colors work. I've also colored the width in blue and the height in red

to make it easier to understand.

Edited by Helge

Share this post


Link to post
Share on other sites

$destination = "Your image xd"
$grootex =200
$grootey = 83
SplashImageOn("sd",$destination,$grootex , $grootey,(@DesktopWidth/2)-($grootex/2),(@DesktopHeight/2)-($grootey/2))

This works to :lmao:


-jaenster

Share this post


Link to post
Share on other sites

k ty :lmao:

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0