Table of Contents

Class AlphaCompositing.Premultiplied

Alpha compositing methods where the colours are in premultiplied alpha form.

public static class AlphaCompositing.Premultiplied
Inheritance
AlphaCompositing.Premultiplied
Inherited Members

Methods

SourceOver(Color, Color)

The Porter-Duff source-over operator. Also known as simple alpha compositing.

public static Color SourceOver(Color source, Color destination)

Parameters

source Color

The foreground colour.

destination Color

The background colour.

Returns

Color

The composited colour in premultiplied alpha form.

Remarks

source and destination should be in premultiplied alpha form. This method does not check they are valid premultiplied colours.

Does not do any colour space conversion.