用VC++编一个可以保存椭圆(包括正圆)上所有点坐标的函数,请教高手 5
因为我们在做一个绘图软件,以上问题是为了实现用不同笔头画出椭圆,所以需要使用到椭圆各点的坐标。...
因为我们在做一个绘图软件,以上问题是为了实现用不同笔头画出椭圆,所以需要使用到椭圆各点的坐标。
展开
1个回答
展开全部
BOOL Ellipse(
HDC hdc, // handle to DC
int nLeftRect, // x-coord of upper-left corner of rectangle
int nTopRect, // y-coord of upper-left corner of rectangle
int nRightRect, // x-coord of lower-right corner of rectangle
int nBottomRect // y-coord of lower-right corner of rectangle
);
Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
HBRUSH CreateSolidBrush(
COLORREF crColor // brush color value
);
Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
More to MSDN,if possible.
HDC hdc, // handle to DC
int nLeftRect, // x-coord of upper-left corner of rectangle
int nTopRect, // y-coord of upper-left corner of rectangle
int nRightRect, // x-coord of lower-right corner of rectangle
int nBottomRect // y-coord of lower-right corner of rectangle
);
Requirements
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Included in Windows 95 and later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
HBRUSH CreateSolidBrush(
COLORREF crColor // brush color value
);
Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
More to MSDN,if possible.
更多追问追答
追问
请问这是基于单文档的MFC应用程序么?可不可以用中文注释一下
追答
windows API 函数库,头文件windows.h 动态库Gdi32.lib,自己导一下就行了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询