Algorithm used to draw a translucent image onto another

39 Views Asked by At

What is the algorithm Java used to draw a translucent image onto another?

Let say I have a pixel value of the base image as 0xc8ff708f, and the pixel to be drawn directly on top of it is 0xba46ff3f, how does Java determine what value the resulting pixel have when drawn through the following code:

baseImage.getGraphics().drawImage(secondImage, 0, 0,
    baseImage.getWidth(), baseImage.getHeight());

When both images are exactly the same size.

0

There are 0 best solutions below