Blend modes (alternatively blending modes or mixing modes) in digital image editing and computer graphics are used to determine how two layers are blended with each other. The default blend mode in most applications is simply to obscure the lower layer by covering it with whatever is present in the top layer (see alpha compositing); because each pixel has numerical values, there also are many other ways to blend two layers. Most graphics editing programs, such as Adobe Photoshop and GIMP, allow users to modify the basic blend modes, for example by applying different levels of opacity to the top "layer". The top "layer" is not necessarily a layer in the application; it may be applied with a painting or editing tool. The top "layer" also is called the "blend layer" and the "active layer". In the formulas shown on this page, values go from 0.0 (black) to 1.0 (white).
Normal blend mode This is the standard blend mode which uses the top layer alone, without mixing its colors with the layer beneath it: f(a,b)=b 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 f(a,b)=alpha(b,a)), 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.
Dissolve The dissolve mode takes random pixels from both layers. With top layer opacity greater than that of the bottom layer, most pixels are taken from the top layer, while 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. Adobe Photoshop generates a pseudo-random noise dither pattern on startup, with each pixel location in a 2D raster array assigned a gray value (R=G=B) and an alpha value of 1 ("on"). As the opacity of the top layer is reduced, the alpha value of some of the gray pixels is switched from 1 to 0 ("off"), with the result that image pixels corresponding to a gray-valued pixel in the raster array are either on (visible, opaque) or off (invisible, transparent), with no opacity gradation.
Multiply and Screen Multiply and Screen blend modes are basic blend modes for darkening and lightening images, respectively. There are many combinations of them, such as Overlay, Soft Light (see below), Vivid Light, Linear Light, and Pin Light.
Multiply Multiply blend mode takes the RGB channel values from 0 to 1 of each pixel in the top layer and multiplies them with the values for the corresponding pixel from the bottom layer. The composite is darker, unless the pixel is white in either layer or black in both layers. Where either layer is white, the composite is the same as the other layer. Where both layers are black, the composite is the same. f(a,b)=ab, where a is the base layer value and b is the top layer value. This mode is commutative: exchanging two layers does not change the result. If the two layers contain the same picture, multiply blend mode is equivalent to a quadratic curve, or gamma correction with γ=2. For image editing it is sometimes more convenient to simply go to the Curves dialog of the software, because it gives more flexibility in the shape of the curves. Or one can use Levels dialog: the middle number is usually 1/γ, so one can just type 0.5. If one layer contains a homogeneous color, such as the gray color (0.8, 0.8, 0.8), multiply blend mode is equivalent to a curve that is simply a straight line. This is also equivalent to using this gray value as opacity when doing "normal mode" blend with a black bottom layer.
Screen With Screen blend mode, the values of the pixels in the two layers are inverted, multiplied, and then inverted again. The result is the opposite of Multiply: wherever either layer was darker than white, the composite is brighter. f(a,b)=1−(1−a)(1−b), where a is the base layer value and b is the top layer value. This mode is commutative: exchanging two layers does not change the result. If one layer contains a homogeneous gray, Screen blend mode is equivalent to using this gray value as opacity when doing "normal mode" blend with white top layer.
Overlay
Overlay combines Multiply and Screen blend modes. Where the base layer is light, the top layer becomes lighter; where the base layer is dark, the top becomes darker; where the base layer is mid grey, the top is unaffected. An overlay with the same picture looks like an S-curve. f(a,b)={2ab,if a<0.51−2(1−a)(1−b),otherwise where a is the base layer value and b is the top layer value. When a<0.5 one gets linear interpolation between 0 and 2a; when a≥0.5 one gets linear interpolation between 2a−1 and 1. This mode is not commutative. However, it can be made commutative by changing the a<0.5 condition to be either min(a,b)<0.5 or max(a,b)<0.5.
Hard Light Hard Light is also a combination of Multiply and Screen. Hard Light affects the blend layer's relationship to the base layer in the same way Overlay affects the base layer's relationship to the blend layer. f(a,b)={2ab,if b<0.51−2(1−a)(1−b),otherwise The inverse relationship between Overlay and Hard Light makes them "commuted blend modes".
Soft Light
… excerpt ends here. Continue reading the full article.





