Re: Adding an image to a project
Re: Adding an image to a project
- Subject: Re: Adding an image to a project
- From: Graham Cox <email@hidden>
- Date: Wed, 14 Jul 2010 22:09:20 +1000
On 14/07/2010, at 9:55 PM, Vincenzo Morgante wrote:
> Well,I read the documentation at link<http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/LoadingResources/ImageSoundResources/ImageSoundResources.html>
> and the example [NSImage imageNamed:]...
> However in this way I get a NSImage, but I need of an IplImage object...So I should convert NsImage to IplImage by get the pixel values: is it possible?
You could but it's likely inefficient. Instead go back a step to [NSBundle pathForResource:ofType:] and related methods. Using that you could write an equivalent method such as [IplImage imageNamed:] or just use it 'as is'.
--Graham
_______________________________________________
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