Re: Embedding image data
Re: Embedding image data
- Subject: Re: Embedding image data
- From: Derrick Bass <email@hidden>
- Date: Mon, 13 Mar 2006 07:41:41 -0800
- Resent-date: Mon, 13 Mar 2006 07:43:48 -0800
- Resent-from: Derrick Bass <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
On Mar 13, 2006, at 6:20 AM, Scott Thompson wrote:
If you are determined, however, you could do something like use
hexdump to dump the image data in hexadecimal form. Format the
hexadecimal so that you can include it in a char * array. Also
write the length of the data into a variable. Then, at runtime,
you simply build your CFData from the char * array and import the
image from there.
xxd -include
directly writes out a C file.
Derrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden