Design Element
Comment on "Proportional Scaling with NSImage"
by Pieter Omvlee — Sep 30
Just wondering, why not make a copy and use the setSize: method of NSImage (of course combined with setScalesWhenResized:YES) ?
I think it's preferable; lockFocus is really, really slow.

When you do use lockFocus (instead of setSize:) it might be a good idea to use the antiAlias and imageInterpolation methods from NSGraphicsContext.
(I'm sure you know this, but maybe somebody else doesn't)

Back to "Proportional Scaling with NSImage"
Design Element

Copyright © Scott Stevenson 2004-2015