On Sep 25, 2008, at 3:52 AM, Christian Giordano wrote:

I think I found what to do. I need to create a bitmap context from the
bitmap and drawing there. It makes sense that everything drawn is
handled by contexts of course, I'm just a bit concerned about
performances.


Internally NSImage will basically do the same thing - create a CGContext to draw the other content into it. The performance shouldn't be an issue in the vast majority of use cases. I'm not convinced that alternatives would actually create a significant speed up, and the additional code required to make it work universally would likely make any of those cases less optimal than what the OS already provides.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to