Name

CompositingMode

Synopsis

This enumeration is used with the System.Drawing.Graphics.CompositingMode property to determine how alpha-blended colors are merged while drawing. SourceCopy effectively disables alpha blending while drawing into the bitmap, writing whatever color is specified (including its alpha value) directly into the bitmap. SourceOver reenables alpha blending, causing colors to be merged as they are drawn.


public enum CompositingMode {

   SourceOver = 0,

   SourceCopy = 1

}

Hierarchy

System.Object System.ValueType System.Enum(System.IComparabl, System.IFormattable, System.IConvertible) CompositingMode

Returned By

System.Drawing.Graphics.CompositingMode

Passed To

System.Drawing.Graphics.CompositingMode

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.