A couple more things I've thought of:

- There is such a thing as a grayscale image that uses floats instead of
bytes for values. You may not even need to do a conversion.

- You may even be able to wrap your buffer up in an image rep without
copying it.

I don't use NSImage; my custom image views do some drawing at lower levels;
so I don't know for sure what all formats are supported. You'd have to study
the docs more. As a newbie, the first thing you should probably do is take
the shortest path to getting something on the screen, in other words finish
what you were already doing--then experiment with ways to avoid conversion
and/or copying.

-- 
Scott Ribe
scott_r...@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

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 arch...@mail-archive.com

Reply via email to