Re: 2D grayscale image from an array of floats
Re: 2D grayscale image from an array of floats
- Subject: Re: 2D grayscale image from an array of floats
- From: Scott Ribe <email@hidden>
- Date: Fri, 18 Dec 2009 18:04:37 -0700
- Thread-topic: 2D grayscale image from an array of floats
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
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden