Grr .. again with the moderation for size .. can you not use rich text or 
something, it just makes a 6k message into a 50k one and this list has a really 
small max message size. Sending the mail yet again .. 

---- original mail follows with the rich text turned into plain ------


I said CGImageCreate, I think that's what you want, you certainly don't have a 
PNG, you have a bitmap of data, a raw buffer. I think you probably have the 
right data provider, that or use CGCreateDataProviderDirect() which looks the 
same for raw data but works directly with the buffer, but just plain 
CGImageCreate() looks like the function which takes raw bytes in an expressed 
format and makes the image. Definitely the PNGDataProvider is wrong, you don't 
have one of those. 

> 
>  On May12, 2012, at 9:27 PM, Luca Ciciriello wrote:
> 
> Now I've used the code: where 
> 
>     CGDataProviderRef provider = CGDataProviderCreateWithData(NULL, outData, 
> (768 * 768 * 4), NULL);
>     CGImageRef test = CGImageCreateWithPNGDataProvider(provider, nil, true, 
> kCGRenderingIntentDefault); 
> 
> where outData is the output of my EmbossEffect function.
> 
> Here "provider" is valorized, but "test" is 0x0. 
> My suspect is that vImageConvolve_ARGB8888 is working with bitmap and a 
> CGImageCreateWithPNGDataProvider is working with PNG, but I haven't found an 
> equivalent function for Bitmap.
> 
> Luca.
> 
> 


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to