Old 9th July 2003, 20:14   #1
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Dialog size (on IO page)

I have an image that is on my page from:

Left=10
Right=-10

Now, what should the size of the image be if I do not want it to be stretched?
I'm giving it a rough estimate at 290?

Ok, so this isn't in pixels then - 290 width of an image is tiny compared to the window!
How do I go about finding the right length, or is turning RESIZETOFIT off the best solution?

-Stu
Afrow UK is offline   Reply With Quote
Old 9th July 2003, 20:18   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Never mind, I took RESIZETOFIT off, and the image is exactly the right size anyway!
It looks a lot better now too, that there is no stretching of the image (if only a little bit before - it made the writting messy!)

-Stu
Afrow UK is offline   Reply With Quote
Old 9th July 2003, 22:06   #3
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
If you want it to be compatible with systems with a custom DPI setting, you'd better make it fit exactly (for 96 DPI, the default) and turn RESIZETOFIT on.

The size of a Modern UI inner window is 300 x 140 dialog units.

So you image has a width of 280 dialog units.

I don't know the exact conversion ratio for the default font. The easiest way to get the amount of pixels (for the default DPI) is probably to take a screenshot.
Joost Verburg is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump