Re: Create CGImageRef with transparency
Re: Create CGImageRef with transparency
- Subject: Re: Create CGImageRef with transparency
- From: "Christian Giordano" <email@hidden>
- Date: Sun, 5 Oct 2008 19:15:16 +0100
Yep, that worked perfectly, thanks a lot!
chr
On Sun, Oct 5, 2008 at 6:45 PM, Adam R. Maxwell <email@hidden> wrote:
>
> On Oct 5, 2008, at 10:28 AM, Christian Giordano wrote:
>
>> I'm trying to create a CGImageRef with CGImageCreate from a generated
>> byte array (RGBA) but it doesn't seem to handle the transparency, so
>> all the pixels are visible when some should not. As color space I'm
>> using CGColorSpaceCreateDeviceRGB(), as CGColorRenderingIntent I'm
>> using kCGRenderingIntentDefault and as bitmap info
>> kCGBitmapByteOrderDefault, any idea if it is possible and what I'm
>> doing wrong?
>
> I think your bitmap info should include kCGImageAlphaLast, and be careful of
> the byte order. David Duncan gave a good explanation of those flags here:
>
> http://lists.apple.com/archives/carbon-dev/2006/Nov/msg00014.html
>
> --
> adam
_______________________________________________
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