Re: How to put image file inside the project?
Re: How to put image file inside the project?
- Subject: Re: How to put image file inside the project?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 14 Nov 2007 09:51:25 +0100
On Nov 13, 2007, at 11:15 PM, Winston Ma wrote:
I would like to put the image inside the xcode project so the
picture is embedded inside the application. How can I do this
and how can I call the image to be loaded?
If you use Carbon: Use CFBundle to locate your image file. Use
CGImageSource to load the image.
If you use Cocoa: Use [NSImage imageNamed:@"filename-without-extension"]
If you want to process you image into in CoreImage, you should use a
CoreImage call. [CIImage initWithContentsOfURL:] for example.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden