Jump to content

Question about zoom ratios.


Recommended Posts

I just want to know... when you zoom in/out with the mouse wheel, how much does the painting zoom in/out with one tick? Can anyone tell me the process that paint.net goes through to determining the next zoom level?

 

I don't know how to look this up online and I'm just really interested right now.

Link to comment
Share on other sites

There is a difference when you zoom in and out. Here is an example from 100 to 200%:

 

Zoom in:           Zoom out:

100 (+12)          100

112 (+13)           113 (-13)

125 (+15)           127 (-14)

140 (+17)           142 (-15)

157 (+19)           159 (-17)

176 (+24)          179 (-20)

200                   200 (-21)

Values for zoom in are like this (after 200%): 24, 27, 30, 19*, 36, 40, 45, 51, 57, 71, 100 (from 600 to 1300), 200 (from 1500 to 2100)...

  • Upvote 1
Link to comment
Share on other sites

I think I see the pattern. It adds (or subtracts) 12% of the current zoom but rounded, unless any value from 6% to 24% would contain the next 100% zoom value.

 

Basically, if you set the zoom value to 161% then zoomed in one tick, it would jump to 200% because 12% of 161% rounds to 180% but 24% of 161% rounds up to 200%.

This is why 160% brings you to just 179% because 124% of 160% is only 198%.

 

At least, that's my theory, and every value I've tested so far follows this rule.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...