[StructLayout(LayoutKind.Sequential)]
public struct Point
{
public Int32 x;
public Int32 y;
public Point(Int32 x, Int32 y)
{ this .x = x; this .y = y; }
}
[StructLayout(LayoutKind.Sequential)]
public struct Size
{
public Int32 cx;
public Int32 cy;
public Size(Int32 cx, Int32 cy)
{ this .cx = cx; this .cy = cy; }
}
[StructLayout(LayoutKind.Sequential, Pack = 1 )]
struct ARGB
{
public byte Blue;
public byte Green;
public byte Red;
public byte Alpha;
}
[StructLayout(LayoutKind.Sequential, Pack = 1 )]
public struct BLENDFUNCTION
{
public byte BlendOp;
public byte BlendFlags;
public byte SourceConstantAlpha;
public byte AlphaFormat;
}
public const Int32 ULW_COLORKEY = 0x00000001 ;
public const Int32 ULW_ALPHA = 0x00000002 ;
public const Int32 ULW_OPAQUE = 0x00000004 ;
public const byte AC_SRC_OVER = 0x00 ;
public const byte AC_SRC_ALPHA = 0x01 ;