[Adium-devl] [Adium-svn] rev 21554 - branches/adium-1.1/Frameworks/AIUtilities Framework/Source trunk/Frameworks/AIUtilities Framework/Source
Peter Hosey
boredzo at gmail.com
Thu Nov 8 13:05:34 UTC 2007
On Nov 07, 2007, at 09:24:45, Peter Hosey wrote:
> On Nov 07, 2007, at 09:05:47, Colin Barrett wrote:
>> Is there a reason we aren't doing
>>
>> foo = [self copy]
>> [foo setScalesWhenResized:YES]
>> [foo setSize:newSize]
>>
>> Instead?
>
> I believe so we can take advantage of NSImageInterpolationHigh. The
> interpolation method used by setSize: is not specified by NSImage's
> docs.
The other thing, which I didn't notice the first time I read your
message, is that it is, no doubt, expensive to make a copy of the
image (and all its reps — -[NSImage copy] is deep) every time you
scale it. I dropped the r21554 solution as soon as I found the
current solution for that reason.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20071108/b075fc2b/attachment.sig>
More information about the devel
mailing list