利用 GDI+可以很容易的描画出逼真的半透明效果的阴影。
void
DrawShadow(Graphics
&
g,
GraphicsPath ButtonPath
)
{
g.SetPageUnit(UnitPixel); //设置Graphics的坐标单位为像素
本文是C++/GDI+学习笔记的第五部分,主要介绍如何利用GDI+轻松创建出具有逼真半透明效果的阴影,为你的应用增添视觉吸引力。
利用 GDI+可以很容易的描画出逼真的半透明效果的阴影。
void
DrawShadow(Graphics
&
g,
GraphicsPath ButtonPath
)
{
g.SetPageUnit(UnitPixel); //设置Graphics的坐标单位为像素