Jump to content

Image resolution problems


pr1
 Share

Recommended Posts

Hi,

I am having trouble figuring out the relationship between image size and resolution in AutoIt windows.

Let us say that I have a 100x100 JPEG image with a 72ppi resolution. When I display it in a 400x400 AutoIt window, the image is approximately 1/3 of the window's width; that is, ~ 133 pixels by 133 pixels. When I increase the image's resolution to 300 ppi in Gimp, and display that image in the 400x400 AutoIt window, the image appears approximately 40 pixels by 40.

In both cases, when I display the image's width and height using _GDIPlus_ImageGetWidth and _GDIPlus_ImageGetHeight respectively, in the Console, the size is 100 x 100. So why is the image so large in the first case, and so small in the second case? How can I make it appear 100 x 100 in both cases?

Many thanks.

pr1

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