Jump to content

getting an image size


ghetek
 Share

Recommended Posts

Well if you are using the latest version (3.2.10.0) 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:

http://www.autoitscript.com/forum/index.ph...0size&st=15

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...