BLENDFUNCTION

C# Definition:

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

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

C# Definition:

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

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

VB Definition:

Última actualización