gdi+ 只能是水平跟竖直的,我想实现一个 弧形的 色带 平滑过渡 如何实现呢
解决方案 »
- 函数调用的问题 迷惑
- 在opengl中,用glTexSubImage2D遇到了一个奇怪的问题
- Inno Setup 编译器,设置安装包安装路径
- 请教如何获取无线网卡的信号强度
- 如何把串口信号转换为USB信号?
- 请教:active控件能否再嵌入一个active控件?
- 问一个 关于 CDialog::OnInitDialog()问题,请进
- 为什么不能调用另一个类的函数?
- MFC中要加载C#编写的DLL报_stdcall无效是怎么回事
- (小菜一碟?)怎样让程序重复执行时自动转到已有的实例中?
- windows下MFC编写视频播放器问题
- C++ 如何将Excel xlsm , xlsx格式保存为xls呢?反过来如何保存呢?
Draws a line segment and an arc, and moves the current position to the ending point of the arc.
CDC::Arc
Draws an elliptical arc.
CDC::ArcTo
Draws an elliptical arc. This function is similar to Arc, except that the current position is updated.
CDC::GetArcDirection
Returns the current arc direction for the device context.
CDC::GetCurrentPosition
Retrieves the current position of the pen (in logical coordinates).
CDC::LineTo
Draws a line from the current position up to, but not including, a point.
CDC::MoveTo
Moves the current position.
CDC::PolyBezier
Draws one or more Bzier splines. The current position is neither used nor updated.
CDC::PolyBezierTo
Draws one or more Bzier splines, and moves the current position to the ending point of the last Bzier spline.
CDC::PolyDraw
Draws a set of line segments and Bzier splines. This function updates the current position.
CDC::Polyline
Draws a set of line segments connecting the specified points.
CDC::PolylineTo
Draws one or more straight lines and moves the current position to the ending point of the last line.
CDC::PolyPolyline
Draws multiple series of connected line segments. The current position is neither used nor updated by this function.
CDC::SetArcDirection
Sets the drawing direction to be used for arc and rectangle functions.
画弧是没问题的
GraphicsPath Path;
Path.AddEllipse(0,0,400,400);//画刷路径是一个椭圆
PathGradientBrush pthGrBrash_(&Path);
if (RectStyle.FillStyle.gradual_style==GRADUAL_CTOE)
{
pthGrBrash_.SetCenterColor( clB );
Color cls[] = { clE };
pthGrBrash_.SetSurroundColors( cls, &iCount );
}
else
{
pthGrBrash_.SetCenterColor( clE );
Color cls[] = { clB };
pthGrBrash_.SetSurroundColors( cls, &iCount );
}
graph.FillRectangle(&pthGrBrash_,100,100,150,200 );//填充路径是矩形