Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

BLENDFUNCTION (Structures)
 
.
Summary
TODO - a short description

C# Definition:

[StructLayout(LayoutKind.Sequential)]
public struct BLENDFUNCTION
{
    byte BlendOp;
    byte BlendFlags;
    byte SourceConstantAlpha;
    byte AlphaFormat;

    public BLENDFUNCTION(byte op, byte flags, byte alpha, byte format)
    {
        BlendOp = op;
        BlendFlags = flags;
        SourceConstantAlpha = alpha;
        AlphaFormat = format;
    }
}

//
// currentlly defined blend operation
//
const int AC_SRC_OVER = 0x00;

//
// currentlly defined alpha format
//
const int AC_SRC_ALPHA = 0x01;

VB Definition:

<StructLayout(LayoutKind.Sequential)> _
Public Structure BLENDFUNCTION

     Private Shared _BlendOp As Byte
     Private Shared _BlendFlags As Byte
     Private Shared _SourceConstantAlpha As Byte
     Private Shared _AlphaFormat As Byte

     Shared Sub New()
     _BlendOp = 0
     _BlendFlags = 0
     _SourceConstantAlpha = 0
     _AlphaFormat = 0
     End Sub

     Public Property BlendOp As Byte
     Get
         Return _BlendOp
     End Get
     Set(ByVal value As Byte)
         _BlendOp = value
     End Set
     End Property

     Public Property BlendFlags As Byte
     Get
         Return _BlendFlags
     End Get
     Set(ByVal value As Byte)
         _BlendFlags = value
     End Set
     End Property

     Public Property SourceConstantAlpha As Byte
     Get
         Return _SourceConstantAlpha
     End Get
     Set(ByVal value As Byte)
         _SourceConstantAlpha = value
     End Set
     End Property

     Public Property AlphaFormat As Byte
     Get
         Return _AlphaFormat
     End Get
     Set(ByVal value As Byte)
         _AlphaFormat = value
     End Set
     End Property

End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions