// Copyright (c) Six Labors. // Licensed under the Six Labors Split License. namespace SixLabors.Fonts.Tables.General.Colr { /// /// Defines the composite (blending) modes used by COLR v1 PaintComposite (format 32) and PaintVarComposite (format 33). /// Includes Porter-Duff compositing operators and separable color blend modes. /// /// internal enum ColrCompositeMode : byte { /// /// Porter-Duff Clear: no output. /// Clear = 0, /// /// Porter-Duff Src: source only. /// Src = 1, /// /// Porter-Duff Dest: destination only. /// Dst = 2, /// /// Porter-Duff Src Over: source over destination. /// SrcOver = 3, /// /// Porter-Duff Dest Over: destination over source. /// DstOver = 4, /// /// Porter-Duff Src In: source where destination exists. /// SrcIn = 5, /// /// Porter-Duff Dest In: destination where source exists. /// DstIn = 6, /// /// Porter-Duff Src Out: source where destination does not exist. /// SrcOut = 7, /// /// Porter-Duff Dest Out: destination where source does not exist. /// DstOut = 8, /// /// Porter-Duff Src Atop: source atop destination. /// SrcAtop = 9, /// /// Porter-Duff Dest Atop: destination atop source. /// DstAtop = 10, /// /// Porter-Duff Xor: exclusive OR of source and destination. /// Xor = 11, /// /// Porter-Duff Plus: additive blending. /// Plus = 12, /// /// Screen blend mode. /// Screen = 13, /// /// Overlay blend mode. /// Overlay = 14, /// /// Darken blend mode: selects the darker of source and destination. /// Darken = 15, /// /// Lighten blend mode: selects the lighter of source and destination. /// Lighten = 16, /// /// Color dodge blend mode. /// ColorDodge = 17, /// /// Color burn blend mode. /// ColorBurn = 18, /// /// Hard light blend mode. /// HardLight = 19, /// /// Soft light blend mode. /// SoftLight = 20, /// /// Difference blend mode. /// Difference = 21, /// /// Exclusion blend mode. /// Exclusion = 22, /// /// Multiply blend mode. /// Multiply = 23, /// /// Hue blend mode: applies the hue of the source to the destination. /// Hue = 24, /// /// Saturation blend mode: applies the saturation of the source to the destination. /// Saturation = 25, /// /// Color blend mode: applies the hue and saturation of the source to the destination. /// Color = 26, /// /// Luminosity blend mode: applies the luminosity of the source to the destination. /// Luminosity = 27 } }