[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);
Declare Function AlphaBlend Lib "gdi32.dll" (TODO) As TODO
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;
Do you know one? Please contribute it!
None.
Please add some!
Please add some!