evCreate API 5.7 Help

EvTrspBlendMode Enumeration

The EvTrspBlendMode TS enumeration defines the blend modes for combining foreground and background pixels when drawing transparent object items.

Burn: "burn";

Darkens the background. It darkens the background pixels based on the brightness of the foreground pixels.

Darken: "darken";

Keeps the darker pixels. It compares the foreground and background for each pixel and keeps the darker value. It is opposite to the Lighten mode.

Difference: "difference";

Creates an inverted effect. Subtracts the foreground pixel color from the background one or the other way around to get a non-negative value: the absolute difference.

Dodge: "dodge";

Brightens the background. It brightens the background pixels based on the brightness of the foreground pixels.

HardLight: "hardlight";

Produces high contrast. Combines the Multiply and Screen modes based on the foreground color. It is opposite to the Overlay mode.

Lighten: "lighten";

Keeps the lighter pixels. It compares the foreground and background for each pixel and keeps the lighter value. It is opposite to the Darken mode.

Multiply: "multiply";

Darkens like ink layering. It darkens the background pixels by multiplying the color values of the foreground and background pixels. It is opposite to the Screen mode.

Normal: "normal";

Replaces the background. The foreground pixels fully replace the background pixels, considering transparency and without mixing colors.

Overlay: "overlay";

Increases contrast. It combines the Multiply mode for dark pixels and the Screen mode for light pixels. Where the background pixel is light, the foreground pixel becomes lighter. Where the background pixel is dark, the foreground pixel becomes darker. Where the background pixel is mid-grey, the foreground pixel is unaffected.

Screen: "screen";

Lightens like projected light. It lightens the background pixels by inverting the color values of the foreground and background pixels, multiplying them, and inverting them again. It is opposite to the Multiply mode.

SoftLight: "softlight";

Produces subtle shading effect. It darkens gently dark pixels and lightens smoothly light pixels. It is most closely related to the Overlay mode.

25 March 2025