Project1
标题:
有没有办法可以拉伸VX的运行屏幕窗口?
[打印本页]
作者:
coolala222
时间:
2019-2-10 23:13
标题:
有没有办法可以拉伸VX的运行屏幕窗口?
不是更换分辨率,而是类似某些FC或GBA模拟器那样,可以自动插值的拉伸屏幕?
001.JPG
(81.89 KB, 下载次数: 13)
下载附件
保存到相册
2019-2-10 23:12 上传
002.JPG
(149.12 KB, 下载次数: 12)
下载附件
保存到相册
2019-2-10 23:12 上传
作者:
张咚咚
时间:
2019-2-10 23:34
#==============================================================================
# ■ Graphics
#------------------------------------------------------------------------------
# 执行图像处理的模块。
#==============================================================================
class << Graphics
FindWindowEx = Win32API.new('user32', 'FindWindowEx', 'llpp', 'i')
GetSysMtr = Win32API.new('user32', 'GetSystemMetrics', 'i', 'i')
SetWindowPos = Win32API.new('user32', 'SetWindowPos', 'liiiiip', 'i')
HWnd = FindWindowEx.call(0, 0, 'RGSS Player', 0)
#--------------------------------------------------------------------------
# ● 调整窗口大小
#--------------------------------------------------------------------------
def zoom(w, h)
w += (GetSysMtr.call(5) + GetSysMtr.call(45)) * 2
h += (GetSysMtr.call(5) + GetSysMtr.call(45)) * 2 + GetSysMtr.call(4)
x = [0, GetSysMtr.call(0) - w].max / 2
y = [0, GetSysMtr.call(1) - h].max / 2
SetWindowPos.call(HWnd, 0, x, y, w, h, 0)
end
end
Graphics.zoom(800, 600)
复制代码
作者:
coolala222
时间:
2019-2-11 00:58
哇!!膜拜膜拜!!
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1