AlphaBlend (gdi32)
Last changed: zarevak-212.11.122.30

.
Summary
TODO - a short description

C# Signature:

[DllImport("gdi32.dll", EntryPoint="GdiAlphaBlend")]
public static extern bool AlphaBlend(IntPtr hdcDest, int nXOriginDest, int nYOriginDest,
    int nWidthDest, int nHeightDest,
    IntPtr hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc,
    BLENDFUNCTION blendFunction);

VB Signature:

Public Declare Function AlphaBlend Lib "gdi32.dll" Alias "GdiAlphaBlend"

(ByVal hdcDest As IntPtr, ByVal nXOriginDest As Integer, ByVal nYOriginDest As Integer,

    ByVal nWidthDest As Integer, ByVal nHeightDest As Integer,
    ByVal hdcSrc As IntPtr, ByVal nXOriginSrc As Integer, ByVal nYOriginSrc As Integer,
    ByVal nWidthSrc As Integer, ByVal nHeightSrc As Integer,
    ByVal blendFunction As BLENDFUNCTION) As Boolean

User-Defined Types:

BLENDFUNCTION

[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;

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
AlphaBlend on MSDN