如何自己实现word中图形的各种填充效果,特别是两种颜色混合的那种效果

hpain 2003-10-20 12:13:40
如何自己实现word中图形的各种填充效果,特别是两种颜色混合的那种效果
...全文
637 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
firebolt2002 2003-10-20
  • 打赏
  • 举报
回复
嘿嘿,哥们,你想要的和我想要的一样,我只知道一点点,我想了解它的填充方向是怎么实现的,两种颜色混合其实挺简单的,WORD XP绘图是用GDI+实现的,方法如下。


PathGradientBrush pthGrBrush(&m_Paths[3]);
//中心点颜色
pthGrBrush.SetCenterColor(Color(255, 255, 255, 255));
// Set the color along the entire boundary of the path to aqua.
Color colors[] = {Color(255, 0, 0)};
int count = 1;
pthGrBrush.SetSurroundColors(colors, &count);
g.FillPath(&pthGrBrush, & m_Paths[i]);
g.DrawPath(m_pPens[i], & m_Paths[i]);

4,445

社区成员

发帖
与我相关
我的任务
社区描述
图形图像/机器视觉
社区管理员
  • 机器视觉
  • 迪菲赫尔曼
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧