查看: 2169|回复: 1

[已经解决] 請問fill_rect contents.rect能不能用圖片來填充?

[复制链接]
梦石
0
星屑
55
在线时间
461 小时
注册时间
2008-11-19
回帖
525
发表于 2012-5-15 05:47:14 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 sai90306 于 2012-5-15 05:49 编辑

self.contents.fill_rect contents.rect, Color.new(0, 0, 0)
或
color = Color.new(0, 0, 0)
self.contents.fill_rect(x, y, w, h, color)
是用來畫一個矩形並且用顏色Color.new(0, 0, 0)填滿的代碼
能不能不要用顏色而改用指定的圖片來填滿?

Fuzzy Ginkgo

梦石
0
星屑
61105
在线时间
1933 小时
注册时间
2010-6-26
回帖
1535

烫烫烫开拓者

发表于 2012-5-15 07:09:03 | 显示全部楼层
我的言论只代表我个人的观点,不代表雇主及/或任何第三方的立场。
Opinions expressed are solely my own and do not express the views or opinions of my employer and/or any third parties.
捐赠 | GitHub
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部