Zooming in/out of images
Zooming in/out of images
- Subject: Zooming in/out of images
- From: Ken Tabb <email@hidden>
- Date: Mon, 15 Oct 2001 13:59:11 +0100
When I'm scaling images with zoom in/out buttons, am I right in thinking
I don't actually change the NSImage being displayed, just the NSImageView
housing it? Clearly if I were to change the actual image, then if I
shrink the image and enlarge it back again, I'll have lost image
info/quality.
What's the easiest way to scale up/down an NSImageView by a certain
percent, so that it appears in the same size region onscreen (i.e. the
window stays the same size, as do all its subviews), but the image view
is showing it at a magnified level?
Thanks in advance,
Ken
----------------------------------------------
Ken Tabb
Mac & UNIX Propellerhead & Network Bloke (Health & Human Sciences)
Computer Vision / Neural Network researcher (Computer Science)
University of Hertfordshire
http://www.health.herts.ac.uk/ken/
Certified non-Microsoft Solution Provider