RenderStateManager.AlphaFunction Property

Language:

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.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.