Share via


RenderStateManager.AlphaFunction Property (Microsoft.DirectX.Direct3D)

Retrieves or sets the comparison function for the alpha test.

Definition

Visual Basic Public Property AlphaFunction As Compare
C# public Compare AlphaFunction { get; set; }
C++ public:
property Compare AlphaFunction {
        Compare get();
        void set(Compare value);
}
JScript public function get AlphaFunction() : Compare
public function set AlphaFunction(Compare);

Property Value

Microsoft.DirectX.Direct3D.Compare
Value of the Compare enumeration that represents the comparison function to set or retrieve.

This property is read/write. 

Remarks

The default value is Compare.Always.

The AlphaFunction property enables an application to accept or reject a pixel based on its alpha value.