| 赞 | 0  | 
 
| VIP | 8 | 
 
| 好人卡 | 0 | 
 
| 积分 | 31 | 
 
| 经验 | 27987 | 
 
| 最后登录 | 2017-7-21 | 
 
| 在线时间 | 762 小时 | 
 
 
 
 
 
Lv3.寻梦者 
	- 梦石
 - 3 
 
        - 星屑
 - 50 
 
        - 在线时间
 - 762 小时
 
        - 注册时间
 - 2010-8-17
 
        - 帖子
 - 681
 
 
 
 | 
	
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员  
 
x
 
- class Bitmap
 
 -   def draw_text2(x, y, width, height, text, align = 0)
 
 -     case align
 
 -     when 0 then y = 0
 
 -     when 1 then y = (self.height - height) / 2
 
 -     when 2 then y = self.height - height - 10
 
 -     end
 
 -     y = 0 if align > 2
 
 -     if text.nil? then return end
 
 -     for i in 0..text.length / 3
 
 -       self.draw_text(x, i * self.font.size + y, 32, 32, text[i * 3, 3])
 
 -     end
 
 -   end
 
 - end
 
 
  复制代码 请教这是什么意思? |   
 
 
 
 |