CanvasComposite Enumeration |
Namespace: Microsoft.Graphics.Canvas
public enum CanvasComposite
Member name | Value | Description | |
---|---|---|---|
SourceOver | 0 | Union of source and destination bitmaps. Equation: O = S + (1 - SA) * D. | |
DestinationOver | 1 | Union of source and destination bitmaps. Equation: O = (1 - DA) * S + D. | |
SourceIn | 2 | Intersection of source and destination bitmaps. Equation: O = DA * S. | |
DestinationIn | 3 | Intersection of source and destination bitmaps. Equation: O = SA * D. | |
SourceOut | 4 | Region of the source bitmap. Equation: O = (1 - DA) * S. | |
DestinationOut | 5 | Region of the destination bitmap. Equation: O = (1 - SA) * D. | |
SourceAtop | 6 | Region of the destination bitmap. Equation: O = DA * S + (1 - SA) * D. | |
DestinationAtop | 7 | Region of the source bitmap. Equation: O = (1 - DA) * S + SA * D. | |
Xor | 8 | Union of source and destination bitmaps with xor function for pixels that overlap. Equation: O = (1 - DA) * S + (1 - SA) * D. | |
Add | 9 | Union of source and destination bitmaps. Equation: O = S + D. | |
Copy | 10 | Region of the source bitmap. Equation: O = S. | |
BoundedCopy | 11 | Union of source and destination bitmaps with no destination override. Equation: O = S (only where source exists). | |
MaskInvert | 12 | Union of source and destination bitmaps with unchanged alpha. Equation: O = (1 - D) * S + (1 - SA) * D. |
The equations listed in enum descriptions use these elements: O = Output S = Source SA = Source Alpha D = Destination DA = Destination Alpha