Sign in to follow this  
Followers 0
wolf83

How to keep original image size in GUI ?

5 posts in this topic

First of all i'm happy to see the official GUI version. Very good job o:)

I need some help on picture file and Autoit.

SplashImageOn function and the GUIctrlCreatePic don't keep the original

size of a picture.

How to determine original width and height of a picture ? I need this because, i want o do a little picture viewer. :lmao:

thanks

Wolf

Share this post


Link to post
Share on other sites



First of all i'm happy to see the official GUI version. Very good job :)

I need some help on picture file and Autoit.

SplashImageOn function and the GUIctrlCreatePic don't keep the original

size of a picture.

How to determine original width and height of a picture ? I need this because, i want o do a little picture viewer. :lmao:

thanks

Wolf

<{POST_SNAPBACK}>

Yes you can keep the original with GUIctrlCreatePic , just look at what the doc say (w=0,h=0) o:)

Share this post


Link to post
Share on other sites

What jpm said worked for me.

The only thing that makes me sad:

You can't create a GUI with the size of the image.

Because we don't know the size of the image in advance, this won't work.

Idea:

GetImageSize($sImageFile)

Share this post


Link to post
Share on other sites

What jpm said worked for me.

The only thing that makes me sad:

You can't create a GUI with the size of the image.

Because we don't know the size of the image in advance, this won't work.

Idea:

GetImageSize($sImageFile)

<{POST_SNAPBACK}>

That's already available.

http://www.autoitscript.com/fileman/users/public/Lazycat/

_GetImageSize($file)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Yes you can keep the original with GUIctrlCreatePic , just look at what the doc say (w=0,h=0) :)

<{POST_SNAPBACK}>

Ok i miss this info in the help file :">

It could be better to do original size by default, more logical no ?

For SplashImageON this is not possible, could be better by default too, or

use the same possibility of GUIctrlCreatePic. o:)

But for the moment _GetImageSize($file) from Lazycat's give me

a workaround :lmao:

Thanks jpm and Helge

Edited by wolf83

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