| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 9 |  
| 经验 | 132 |  
| 最后登录 | 2014-9-6 |  
| 在线时间 | 1270 小时 |  
 Lv2.观梦者 
	梦石0 星屑892 在线时间1270 小时注册时间2011-2-14帖子5589 | 
| 纸飞机哟 发表于 2011-7-14 18:25 ![]() 果断求方法,顺便求超过640*480的地图截法 = =
这个算额外帮助吗?
 超过640×480的截图方法:
 下面是截图脚本的原版:
 #==============================================================================
 # ■ module Screen
 #------------------------------------------------------------------------------
 #  处理画面截图的模块。
 #==============================================================================
 
 module Screen
 # 声明 API
 @screen = Win32API.new 'screenshot', 'Screenshot', %w(l l l l p l l), ''
 @readini = Win32API.new 'kernel32', \
 'GetPrivateProfileStringA', %w(p p p p l p), 'l'
 @findwindow = Win32API.new 'user32', 'FindWindowA', %w(p p), 'l'
 module_function
 #--------------------------------------------------------------------------
 # ● 截图
 #--------------------------------------------------------------------------
 def shot(file = "rplay", typ = 1)
 # 根据类型生成扩展名
 if typ == 0
 typname = ".bmp"
 elsif typ == 1
 typname = ".jpg"
 elsif typ == 2
 typname = ".png"
 end
 file_index = 0
 dir = "Graphics/Pictures/"
 # 生成文件名
 file_name = dir + file.to_s + typname.to_s
 # 生成截图文件(x,y,width,height,文件名,窗口句柄,类型)
 @screen.call(0,0,640,480,file_name,handel,typ)
 end
 #--------------------------------------------------------------------------
 # ● 获取游戏窗口句柄
 #--------------------------------------------------------------------------
 def handel
 game_name = "\0" * 256
 @readini.call('Game','Title','',game_name,255,".\\Game.ini")
 game_name.delete!("\0")
 return @findwindow.call('RGSS Player',game_name)
 end
 end
 
 
 
 
 
 
 
 修改第31行那几个熟悉的数字就行了
 
 
 
 
 
 
 
 
 动态fog…………本人是懒人,想要的直接加qq 1371455177
 | 
 |