On Wed, Jun 11, 2008 at 9:50 PM, Bill Prinzmetal <[EMAIL PROTECTED]> wrote:

> I would like to create an NSImage starting from a c array.  I have a c
> array, e.g.,
>
> float myArray[256][256];
>
> Where the values go from 0.0 (will be black) to 1.0 (will be white)
> I would like to may a gray level image [NSImage] from this array.  I have no
> idea of how to begin.

You could perhaps Google "NSImage", click on the second result, "Cocoa
Drawing Guide: Creating NSImage Objects", and look at the section
"Creating a Bitmap"...

Hamish
_______________________________________________

Cocoa-dev mailing list ([email protected])

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