- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
函数名: fillellipse功? 能: 画出并填充一椭圆用? 法: void far fillellipse(int x, int y, int xradius, int yradius);程序例:
#include graphics.h#include conio.h
int main(void){?? int gdriver = DETECT, gmode;?? int xcenter, ycenter, i;
?? initgraph(gdriver,gmode,);?? xcenter = getmaxx() / 2;?? ycenter = getmaxy() / 2;
?? for (i=0; i13; i++)?? {????? setfillstyle(i,WHITE);????? fillellipse(xcenter,ycenter,100,50);????? getch();?? }
?? closegraph();?? return 0;}??
Graphics 类
.NET Framework 类库
Graphics 类
封装一个 GDI+ 绘图图面。无法继承此类。
命名空间:System.Drawing程序集:System.Drawing(在 system.drawing.dll 中)
?语法
Visual Basic(声明)
Public NotInheritable Class Graphics
Inherits MarshalByRefObject
Implements IDeviceContext, IDisposable
Visual Basic(用法)
Dim instance As Graphics
C#
public sealed class Graphics : MarshalByRefObject, IDeviceContext, IDisposable
C++
public ref class Graphics sealed : public MarshalByRefObject, IDeviceContext, IDisposable
J#
public final class Graphics extends MarshalByRefObject implements IDeviceContext, IDisposable
JScript
public final class Graphics extends MarshalByRefObject implements IDeviceContext, IDisposable
?备注
Graphics 类提供将对象绘制到显示设备的方法。Graphics 与特定的设备上下文关联。
通过调用从 System.Windows.Forms.Control 继承的对象的 Control.CreateGraphics 方法,或通过处理控件的 Control.Paint 事件并访问 System.Windows.Forms.PaintEventArgs 类的 Graphics 属性,可以获取 Graphics。
?继承层次结构
System.Object ?? System.MarshalByRefObject ????System.Drawing.Graphics
?线程安全
此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。
?平台
Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition
Graphics 成员
.NET Framework 类库
Graphics 成员
封装一个 GDI+ 绘图图面。无法继承此类。
下表列出了由 Graphics 类型公开的成员。
?公共属性
? 名称 说明 Clip 获取或设置 Region,该对象限定此 Graphics 的绘图区域。 ClipBounds 获取一个 RectangleF 结构,该结构限定此 Graphics 的剪辑区域。 CompositingMod
文档评论(0)