Re: Debugging "CGImageCreate: invalid image provider: NULL"?
Re: Debugging "CGImageCreate: invalid image provider: NULL"?
- Subject: Re: Debugging "CGImageCreate: invalid image provider: NULL"?
- From: Izak van Langevelde <email@hidden>
- Date: Sun, 31 Jul 2011 21:51:18 -0400
On 2011-07-31, at 9:28 PM, Graham Cox wrote:
>
> On 01/08/2011, at 11:25 AM, Izak van Langevelde wrote:
>
>>> Are you passing the bytes (or CFData) to the 'data provider' parameter? If so, that's wrong - you need to pass a CGDataProviderRef. Create one using CGDataProviderCreateWithData or CGDataProviderCreateWithCFData, depending on what form your bytes are in.
>>
>> I'm creating one with CGDataProviderCreateSequential, using callbacks.
>>
>
>
> Seems like a lot of work for your situation. Does it work if you use one of the others?
I am now using CGDataProviderCreateWithData which seems to work: thanks!
(I'll put to rest the question why CGDataProviderCreateSequential gives an error)
---
Grinnikend door het leven...
_______________________________________________
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