
| @b = Bitmap.new(100,100) 此处的俩100是什么 | 

| 将原来 183行替换为 self.contents.fill_rect(b[0][0], h.round, c[0].round, 1, cl) 不要用下面你改过的bitmap什么的 | 

| 那你就调用你要填充颜色的【对象】.fill_rect 只要它有fill_rect就可以 
  ============================== 不知道我是否能理解你,不知道你是否能理解这种编程模式…… 给你写了个例子: http://115.com/file/dnmpluv6 | 

| Bitmap.new(filename) Bitmap.new(width, height) F1看帮助,没有你那种构造方法。另外我记得Ruby是区分大小写的,Bitmap | 

| fill_rect应该是某Bitmap类的过程吧? 你要这样 @a = Bitmap.new(xx,xx) @a.fill_rect(xxxxxxx) 记住一定要是xx.fill_rect | 
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-11-1 04:42
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.