Table of Contents

Method Blend

Namespace
DocWright.Core.Rendering
Assembly
DocWright.Core.dll

Blend(byte, ColorRgb, byte, ColorRgb, byte, out ColorRgb, out byte)

The foreground over the background at a coverage, composited premultiplied: the colour of a cell (Cell(int, out ColorRgb, out byte)) at that coverage.

public static void Blend(byte coverage, ColorRgb foreground, byte foregroundAlpha, ColorRgb background, byte backgroundAlpha, out ColorRgb color, out byte alpha)

Parameters

coverage byte

The foreground's coverage, 0 to 255.

foreground ColorRgb

The foreground colour.

foregroundAlpha byte

The foreground's opacity.

background ColorRgb

The background colour.

backgroundAlpha byte

The background's opacity.

color ColorRgb

The blend's colour; the background where both are clear.

alpha byte

The blend's opacity, 0 to 255.