例子一:实现PictureBox的透明化。
1.1 调用WinAPI的类
[DllImport("coredll.dll")]
extern public static Int32 AlphaBlend(IntPtr hdcDest, Int32 xDest, Int32 yDest, Int32 cxDest, Int32 cyDest, IntPtr hdcSrc, Int32 xSrc, Int32 ySrc, Int32 cxSrc, Int32 cySrc, BlendFunction blendFunction);
}
1.2在界面上重画PictrueBox(需要设置PictureBox为隐藏)