Thanks, It works. Seems it uses ARGB instead of RGBA. I used
*kCGImageAlphaNoneSkipLast,* which consumes more memory and all the images
are colored as copied images.

Thank you
Peng


On Tue, Jan 28, 2014 at 4:10 PM, David Duncan <[email protected]>wrote:

>
> On Jan 28, 2014, at 12:37 PM, Peng Gu <[email protected]> wrote:
>
> kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Little
>
>
> You just asked Core Graphics to make a context with alpha, and thus an
> image with alpha. Core Animation doesn’t enumerate all the pixels of the
> image to determine if there is alpha, it just looks at the image flags.
>
> If you don’t want alpha, use kCGImageAlphaNoneSkipFirst instead.
> --
> David Duncan
>
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to