Adobe Photoshop CS5 Object Library JS: BlendMode

Photoshop CS5

 Controls how pixels in the image are blended.

Value

NameDescriptionValue
BlendMode.COLORBLENDCreates a result color with the luminance of the base color and the hue and saturation of the blend color. This preserves the gray levels in the image and is useful for coloring monochrome images and for tinting color images. int 22
BlendMode.COLORBURNLooks at the color information in each channel and darkens the base color to reflect the blend color by increasing the contrast. Blending with white produces no change. int 6
BlendMode.COLORDODGELooks at the color information in each channel and brightens the base color to reflect the blend color by decreasing the contrast. Blending with black produces no change. int 10
BlendMode.DARKENLooks at the color information in each channel and selects the base or blend color�whichever is darker�as the result color. Pixels lighter than the blend color are replaced, and pixels darker than the blend color do not change. int 4
BlendMode.DARKERCOLORLighter colors lighten the result, and darker colors darken the result. 50% gray as a blend color has no effect on the result color. Lowering the fill opacity creates less posterization/thresholding. int 28
BlendMode.DIFFERENCELooks at the color information in each channel and subtracts either the blend color from the base color or the base color from the blend color, depending on which has the greater brightness value. Blending with white inverts the base color values; blending with black produces no change. int 18
BlendMode.DISSOLVEEdits or paints each pixel to make it the result color. However, the result color is a random replacement of the pixels with the base color or the blend color, depending on the opacity at any pixel location. int 3
BlendMode.EXCLUSIONCreates an effect similar to but lower in contrast than the Difference mode. Blending with white inverts the base color values. Blending with black produces no change. int 19
BlendMode.HARDLIGHTMultiplies or screens the colors, depending on the blend color. The effect is similar to shining a harsh spotlight on the image. If the blend color (light source) is lighter than 50% gray, the image is lightened, as if it were screened. This is useful for adding highlights to an image. If the blend color is darker than 50% gray, the image is darkened, as if it were multiplied. This is useful for adding shadows to an image. Painting with pure black or white results in pure black or white. int 14
BlendMode.HARDMIXLighter colors lighten the result, and darker colors darken the result. 50% gray as a blend color has no effect on the result color. Lowering the fill opacity creates less posterization/thresholding. int 26
BlendMode.HUECreates a result color with the luminance and saturation of the base color and the hue of the blend color. int 20
BlendMode.LIGHTENLooks at the color information in each channel and selects the base or blend color�whichever is lighter�as the result color. Pixels darker than the blend color are replaced, and pixels lighter than the blend color do not change. int 8
BlendMode.LIGHTERCOLORLighter colors lighten the result, and darker colors darken the result. 50% gray as a blend color has no effect on the result color. Lowering the fill opacity creates less posterization/thresholding. int 27
BlendMode.LINEARBURNLooks at the color information in each channel and darkens the base color to reflect the blend color by decreasing the brightness. Blending with white produces no change. int 7
BlendMode.LINEARDODGELooks at the color information in each channel and brightens the base color to reflect the blend color by increasing the brightness. Blending with black produces no change. int 11
BlendMode.LINEARLIGHTBurns or dodges the colors by decreasing or increasing the brightness, depending on the blend color. If the blend color (light source) is lighter than 50% gray, the image is lightened by increasing the brightness. If the blend color is darker than 50% gray, the image is darkened by decreasing the brightness. int 16
BlendMode.LUMINOSITYCreates a result color with the hue and saturation of the base color and the luminance of the blend color. This mode creates an inverse effect from that of the Color mode. int 23
BlendMode.MULTIPLYLooks at the color information in each channel and multiplies the base color by the blend color. The result color is always a darker color. Multiplying any color with black produces black. Multiplying any color with white leaves the color unchanged. When you�re painting with a color other than black or white, successive strokes with a painting tool produce progressively darker colors. The effect is similar to drawing on the image with multiple marking pens. int 5
BlendMode.NORMALEdits or paints each pixel to make it the result color. (Called "Threshold" when you�re working with a bitmapped or indexed-color image.) int 2
BlendMode.OVERLAYMultiplies or screens the colors, depending on the base color. Patterns or colors overlay the existing pixels while preserving the highlights and shadows of the base color. The base color is not replaced but is mixed with the blend color to reflect the lightness or darkness of the original color. int 12
BlendMode.PASSTHROUGHAllows any blend modes, advanced blending options, and opacity and fill values applied to layers within a set to affect layers below the set in the Layers palette.
Valid only for layer sets. To restrict blend modes of the layers within a set, change the layer set's blend mode to Normal.
int 1
BlendMode.PINLIGHTReplaces the colors, depending on the blend color. If the blend color (light source) is lighter than 50% gray, pixels darker than the blend color are replaced, and pixels lighter than the blend color do not change. If the blend color is darker than 50% gray, pixels lighter than the blend color are replaced, and pixels darker than the blend color do not change. This is useful for adding special effects to an image. int 17
BlendMode.SATURATIONCreates a result color with the luminance and hue of the base color and the saturation of the blend color. Painting with this mode in an area with no (0) saturation (gray) causes no change. int 21
BlendMode.SCREENLooks at each channel�s color information and multiplies the inverse of the blend and base colors. The result color is always a lighter color. Screening with black leaves the color unchanged. Screening with white produces white. The effect is similar to projecting multiple photographic slides on top of each other. int 9
BlendMode.SOFTLIGHTDarkens or lightens the colors, depending on the blend color. The effect is similar to shining a diffused spotlight on the image. If the blend color (light source) is lighter than 50% gray, the image is lightened as if it were dodged. If the blend color is darker than 50% gray, the image is darkened as if it were burned in. Painting with pure black or white produces a distinctly darker or lighter area but does not result in pure black or white. int 13
BlendMode.VIVIDLIGHTBurns or dodges the colors by increasing or decreasing the contrast, depending on the blend color. If the blend color (light source) is lighter than 50% gray, the image is lightened by decreasing the contrast. If the blend color is darker than 50% gray, the image is darkened by increasing the contrast. int 15

Usage

As property

Layer.blendMode

Jongware, 28-Aug-2012 v3.0.3iContents :: Index