*** Welcome to piglix ***

Blend modes


Blend modes (or Mixing modes) in digital image editing are used to determine how two layers are blended into each other. The default blend mode in most applications is simply to hide the lower layer with whatever is present in the top layer. However, as each pixel has a numerical representation, a large number of ways to blend two layers is possible. The top layer is not necessarily called a "layer" in the application. It may be applied with a painting or editing tool.

Most graphics editing programs, like Adobe Photoshop and GIMP, allow the user to modify the basic blend modes - for example by applying different levels of opacity to the top picture.

In the formulas shown on this page, values go from 0.0 (black) to 1.0 (white).

This is the standard blend mode which uses the top layer alone, without mixing its colors with the layer beneath it.

Where a is the value of a color channel in the underlying layer, and b is that of the corresponding channel of the upper layer. The result is most typically merged into the bottom layer using "simple" (b over a) alpha compositing (making the actual formula ), but other Porter-Duff operations are possible. The compositing step results in the top layer's shape, as defined by its alpha channel, appearing over the bottom layer.

The dissolve mode takes random pixels from both layers. With high opacity, most pixels are taken from the top layer. With low opacity most pixels are taken from the bottom layer. No anti-aliasing is used with this blend mode, so the pictures may look grainy and harsh.


...
Wikipedia

...