> Hi
> If two images with opacity 50% place over another, how to calculate
> the final RGB?
RTFM AlphaComposite
> Hi
> If two images with opacity 50% place over another, how to calculate
> the final RGB?
> thanks
> from Peter (cmk28@hotmail.com)
Traditionally, you would start with some background layer (which may be
completely white, completely black, completely transparent, or something
else), merge the first layer onto that, treat the result as a single layer,
and merge the second layer onto that. I.e. they're treated like the
transparent ink cells that cartoonists use for animations.
If you wanted two images to be merged with each other, you'd probably
want the bottom one to have 100% opacity, and the top one to have 50%
opacity.
- Oliver