Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to draw a bitmap with Alpha values preserved in CGContext?



hi.

Now that Apple says we need to use CG and no more GWorld...
I'm trying to figure this one out:

Take this Apple sample software:

http://developer.apple.com/samplecode/ImproveYourImage/index.html

And this sample image:

<http://www.sky4studios.com/sample.zip>
An alpha channeled image.

It has 2 ways to draw: QT way and CG ways.

QT Way is they way I want obtain.

When it is drawing with CG in CGContext, it applies the Alpha value to the 3 RGB colors and so doesn't preserve the full 32-bit ARGB pixel colors.

Is there away to fix this with CG?

thx, looked into doc for 2 hours and thought that's too long so must be something tricky..

regards,

marc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >QTKit or Quicktime API for frame analysis (From: "Kevin" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.