Class AlphaCompositing.Premultiplied
- Namespace
- PAC.Colour.Compositing
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
ColorThe foreground colour.
destination
ColorThe 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.