LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2010, 10:01 PM   #1
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Alpha equation


Quoted from the Wikipedia article on Alpha compositing:

Quote:
As an example, the over operator can be accomplished by applying the following formula to each pixel value:

C_o = C_a \alpha_a + C_b \alpha_b \left(1 - \alpha_a\right)

where Co is the result of the operation, Ca is the color of the pixel in element A, Cb is the color of the pixel in element B, and αa and αb are the alpha of the pixels in elements A and B respectively.
The rest of the article can be seen here.

Now the ultimate question: How can this be implemented with 3 values instead of 2?
 
Old 03-10-2010, 10:59 PM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791

Original Poster
Blog Entries: 62

Rep: Reputation: 56
Sorry, I figured this out myself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: K3b 2.0 Alpha Preview - First Alpha of the KDE4 Port Is Out LXer Syndicated Linux News 0 04-26-2009 05:30 PM
Algebra Equation Software a_c_g_t Linux - Newbie 2 04-27-2006 08:46 AM
LXer: Mozilla Firefox 3.0 Alpha 1 (Deer Park Alpha 2) LXer Syndicated Linux News 0 04-09-2006 08:21 PM
Transparency Equation leonidg Programming 3 02-08-2005 02:38 AM
an equation in c language liquid sky Programming 5 03-22-2004 02:25 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration