Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.

CombineMode Enumeration

Contains possible combine modes. They are used when a bitmap is drawn on a window or blended with another bitmap.

Namespace: Aurigma.GraphicsMill.Transforms
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public enum CombineMode

Members

Member name Description
Add

Add combine mode. It sums pixel values of the source and overlaying images taking into account their transparency.

Alpha

Alpha combine mode. Each overlaying pixel is blended with the corresponding source pixel. The opacity value of the overlaying image is taken into account. Makes sense only if the overlaying image has alpha channel.

AlphaOverlapped

Alpha overlapped combine mode. The same as Alpha, but the resulting alpha channel is calculated as the maximum between the source and overlaying alpha channels. This mode is useful only when both, the source and the overlaying images have alpha channels.

AlphaOverlay

Alpha overlay combine mode. Allows blending multiple transparent images and supports image reordering without quality loss.

And

AND combine mode. Bitwise AND operation is applied to the source and overlaying colors.

Behind

Behind combine mode. Colors are blended only in the semi-transparent areas of the overlaying image. The opaque areas are ignored.

Color

Color combine mode. Hue and saturation of the resulting color are taken from the overlaying color, and the luminosity is taken from the overlaying color. This mode is useful for tinting images.

Copy

Copy combine mode. Each overlaying pixel replaces the corresponding source pixel. The opacity value is ignored, as a result the transparent zones become black.

Difference

Difference combine mode. The resulting value is the difference between the source and overlaying colors, whichever has the greater luminosity.

Divide

Divide combine mode. The resulting value is source pixel divided by the overlaying one.

Hue

Hue combine mode. The hue of the resulting color is taken from the overlaying color, and the other components, saturation and luminosity, are taken from the source color.

IfDarker

"If Darker" combine mode. The resulting color is defined as the darkest between the colors of source and overlaying images.

IfLighter

"If Lighter" combine mode. The resulting color is defined as the lightest between the colors of source and overlaying images.

Invert

Invert combine mode. The overlaying image is inverted and blended with the source image in the same way as in the Alpha mode.

Luminosity

Luminosity combine mode. The luminosity of the resulting color is taken from the overlaying color, and the other components are taken from the source color.

Multiply

Multiply combine mode. The source color is multiplied by the overlaying one. The resulting value is normalized to the maximum luminosity value.

Or

OR combine mode. Bitwise OR operation is applied to the source and overlaying colors.

Overlay

Overlay combine mode. Depending on the source pixel luminosity the Screen (lightening) or the Multiply (darkening) mode is used to calculate the resulting pixel. The lighter the source pixel, the lighter the resulting pixel; and the darker the source pixel, the darker the resulting pixel.

Saturation

Saturation combine mode. The saturation of the resulting color is taken from the overlaying color, and the other components are taken from the source color.

Screen

Screen combine mode. The overlaying color is inverted and multiplied by the source one. The resulting value is normalized to the maximum luminosity value.

Subtract

Substract combine mode. The source and overlaying colors are added, and then the maximum luminosity value is subtracted from the resulting value.

Texturize

Texturize combine mode. The overlaying image is converted to grayscale and blended with the source image in the same way as in the Alpha mode.

Xor

XOR combine mode. Bitwise XOR operation is applied to the source and overlaying colors.

See Also

Reference

Manual