Rect   rect(400, 30,  200, 200);
   GraphicsPath path;
   path.AddEllipse(rect);      // 构造一个路径 
   PathGradientBrush pthGrBrush(&path);                     // 使用路径构造一个画刷 

   pthGrBrush.SetCenterColor(Color(0, 0, 0));              // 将路径中心颜色设为黑色
   Color colors[] = {Color(255, 255, 255)};                     // 设置路径周围的颜色为白色
   INT count = 1;
   pthGrBrush.SetSurroundColors(colors, &count);
   gs.FillEllipse(&pthGrBrush, rect);

相关文章:

  • 2021-05-13
  • 2021-10-10
  • 2021-10-19
  • 2021-09-05
  • 2021-12-22
  • 2022-12-23
猜你喜欢
  • 2021-12-14
  • 2021-07-28
  • 2022-03-01
  • 2021-08-15
  • 2022-12-23
相关资源
相似解决方案