Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with NSBitmapImageRep, please



On Oct 30, 2008, at 7:12 PM, M Pulis wrote:

I have a sensor device that give me raw data for an image of 1201 by 861 pixels at 16 bits per pixel.

Although monochromatic, I would like to represent it in an RGB bitmap. I use an NSInteger [3] to populate the pixels via setPixel.

You should really consider using the vImage framework (part of the Accelerate framework) to perform this transformation. It is almost certain to be faster than what you're doing and less prone to errors.


http://developer.apple.com/documentation/Performance/Conceptual/vImage/

Cheers,
Ken

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Help with NSBitmapImageRep, please (From: M Pulis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.