Mailing Lists: Apple Mailing Lists

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

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



Noticed mistake

G was mentioned twice second G need to be B of course...


On 28 Jun 2006, at 20:18, Marc Van Olmen wrote:

The same as provided CGDraw sample code by apple

CGBitmapContext is typical 8-bit ARGB bitmap.

when I draw the CGImageRef (obtained by QT GraphicsImporter or by CGImageSource...) with CGContextDrawImage and I look with the debugger (and also onscreen) the values of each pixel are the following

R(cg)= R*A,
G(cg)= G*A,
G(cg)= G*A
A(cg)=A

I don't want that I want to obtain

R(cg)= R,
G(cg)= G,
G(cg)= G
A(cg)=A

I know how to do this with QT not sure how to do this with.... CG

thx,

marc



On 28 Jun 2006, at 19:30, Shawn Erickson wrote:

On 6/28/06, Marc Van Olmen <email@hidden> wrote:

Is there away to fix this with CG?

I think you need to better explain the issue and exactly what you are trying to achieve before folks can help much.

First what type of CGContext are you attempting to draw into? What is
the source for the image you are drawing? etc.

-Shawn

_______________________________________________
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/marc% 40sky4studios.be


This email sent to email@hidden

_______________________________________________ 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>)
 >How to draw a bitmap with Alpha values preserved in CGContext? (From: Marc Van Olmen <email@hidden>)
 >Re: How to draw a bitmap with Alpha values preserved in CGContext? (From: Marc Van Olmen <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.