[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Effects.ColorMatrix

Class ColorMatrix

Namespace
GrapeCity.Documents.DX.Direct2D.Effects
Assembly
GcDocs.DX.Windows.dll

Builtin ColorMatrix effect.

public class ColorMatrix : Effect, IDisposable, IUnknown
Inheritance
object
ColorMatrix
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

ColorMatrix(IntPtr)

Initializes a new instance of the ColorMatrix class.

public ColorMatrix(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

AlphaMode

The alpha mode of the output. This can be either premultiplied or straight. See Alpha modes for more info.

public AlphaMode AlphaMode { get; set; }

Property Value

AlphaMode

ClampOutput

Whether the effect clamps color values to between 0 and 1 before the effect passes the values to the next effect in the graph. The effect clamps the values before it premultiplies the alpha . if you set this to TRUE the effect will clamp the values. If you set this to FALSE, the effect will not clamp the color values, but other effects and the output surface may clamp the values if they are not of high enough precision.

public bool ClampOutput { get; set; }

Property Value

bool

Matrix

A 5x4 matrix of float values. The elements in the matrix are not bounded and are unitless. The default is the identity matrix.

public Matrix5x4 Matrix { get; set; }

Property Value

Matrix5x4

Methods

Create(DeviceContext)

Initializes a new instance of ColorMatrix effect.

public static ColorMatrix Create(DeviceContext context)

Parameters

context DeviceContext

Returns

ColorMatrix