graphics.drawRect()方法
2024-09-01 10:52:00
drawRect方法的官方API文档描述
drawRect
public void drawRect(int x,
int y,
int width,
int height)
Draws the outline of the specified rectangle. The left and right edges of the rectangle are at x and x + width. The top and bottom edges are at y and y + height. The rectangle is drawn using the graphics context's current color.
Parameters:
x - the x coordinate of the rectangle to be drawn.
y - the y coordinate of the rectangle to be drawn.
width - the width of the rectangle to be drawn.
height - the height of the rectangle to be drawn.
width和height的描述是错误的。
实践告诉我们,width,height参数应该是右下角的点的坐标。
最新文章
- ASP.NET MVC——模型绑定
- Python成长笔记 - 基础篇 (十一)
- iSCSI 与 ceph
- Android开发学习笔记:浅谈WebView(转)
- [BS-14] 打印NSArray和NSDictionary的3种方法
- UI控件tag属性和魔法数字的处理
- Android使用Webview加载网页
- Spring talk简单配置
- 猪满满 购物APP
- intellij安装 配置 创建项目
- 利用谷歌 kaptcha 进行验证码生成
- JavaScript中创建命名空间
- Java Map List 的使用
- 微信小程序红包开发 小程序发红包 开发过程中遇到的坑 微信小程序红包接口的
- python 生产者 --- 消费者
- Python相关
- Ogre Compositor解析
- [工具] Textify – 复制不可能的窗口内容[Win]
- qScrollArean的使用
- webpack快速入门——实战技巧:优雅打包第三方类库
热门文章
- 记一次 Windows MySQL 恢复
- Amazon S3 分布式存储的 python 接口实现
- 用gcc/g++编译winsock程序
- 如何使用Python连接ldap
- Entity Framework 6.0 入门系列 第一篇
- 图表控件业界革命 -Arction新产品LightningChart JS 上市
- Flac无损音频导入premiere
- 2013-2014 ACM-ICPC Pacific Northwest Regional Contest D.Delta Quadrant
- CodeForces 909E
- .net core api服务端跨域配置