Jump to content
Sign in to follow this  

getting an image size

Recommended Posts

Well if you are using the latest version ( with the builtin GDI functions you could do this:

#Include <GDIPlus.au3>

$hImage = "C:\Documents and Settings\...\My Documents\My Pictures\Wallpaper\01232_lazydaysii_1920x1200.jpg"

$H = _GDIPlus_ImageGetHeight($hImage)

$W = _GDIPlus_ImageGetWidth($hImage)

MsgBox(0,"",$H & "x" & $W)

Unfortunately I get an avector out of bounds error and don't feel like fixing it.

You could also try this UDF:


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...