Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6812027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:23:59+00:00 2026-05-26T20:23:59+00:00

Given two images A,B I want a third image C which is as if

  • 0

Given two images A,B I want a third image C which is as if B had transparency of t=0.5 and placed on top of A.

How is C calculated in reality and how n affects it ? I am not interested in any program or pseudo code I just want to know the basic rationale.

One way I think is C is nothing but alternating pixels of A and B. What are the other ways ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:24:00+00:00Added an answer on May 26, 2026 at 8:24 pm

    The color and optionally transparency of each pixel of A and B is combined according to the weight.

    If the transparency is 0.75, then typically 25% of the color values from B and 75% of the color values from A (the underlying image) would be used.

    Basically, the red, green, blue, and optionally the alpha channels are each calculated like this, and then recombined to form one resulting pixel.

    Example:

    A = [1 0 0]  <-- red
    B = [0 1 0]  <-- blue
    a = 0.75 (which means B is more transparent than it is opaque)
    
    C = [
        0.75 = 1 * 0.75 + 0 * 0.25 (red component)
        0.25 = 0 * 0.75 + 1 * 0.25 (green component)
        0.00 = 0 * 0.75 + 0 * 0.25 (blue component)
    ] //       A          B
    

    If the images have alpha channels on their own, the calculation becomes more complex.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want a jquery image slider where there will be two version of images.One
Given: two images of the same subject matter; the images have the same resolution,
I want to get the maximum values from two images, while preserving other information.
Given below are two PHP functions which basically does the same thing, What i
I'm writing a web application in PHP which needs to store images and image
Hi, I want to display data in format as given in image. I am
I have a grid which I want to populate with images. So Internally I
Given two integers a and b , how would I go about calculating the
Given two sets A and B, what is the common algorithm used to find
Given two 3D vectors A and B, I need to derive a rotation matrix

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.