设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索

有没有办法可以拉伸VX的运行屏幕窗口?

查看数: 2376 | 评论数: 3 | 收藏 1
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2019-2-10 23:13

正文摘要:

不是更换分辨率,而是类似某些FC或GBA模拟器那样,可以自动插值的拉伸屏幕?

回复

coolala222 发表于 2019-2-11 00:58:31
哇!!膜拜膜拜!!
张咚咚 发表于 2019-2-10 23:34:30
  1. #==============================================================================
  2. # ■ Graphics
  3. #------------------------------------------------------------------------------
  4. #  执行图像处理的模块。
  5. #==============================================================================

  6. class << Graphics
  7.   FindWindowEx = Win32API.new('user32', 'FindWindowEx', 'llpp', 'i')
  8.   GetSysMtr    = Win32API.new('user32', 'GetSystemMetrics', 'i', 'i')
  9.   SetWindowPos = Win32API.new('user32', 'SetWindowPos', 'liiiiip', 'i')
  10.   HWnd = FindWindowEx.call(0, 0, 'RGSS Player', 0)
  11.   #--------------------------------------------------------------------------
  12.   # ● 调整窗口大小
  13.   #--------------------------------------------------------------------------
  14.   def zoom(w, h)
  15.     w += (GetSysMtr.call(5) + GetSysMtr.call(45)) * 2
  16.     h += (GetSysMtr.call(5) + GetSysMtr.call(45)) * 2 + GetSysMtr.call(4)
  17.     x = [0, GetSysMtr.call(0) - w].max / 2
  18.     y = [0, GetSysMtr.call(1) - h].max / 2
  19.     SetWindowPos.call(HWnd, 0, x, y, w, h, 0)
  20.   end
  21. end

  22. Graphics.zoom(800, 600)
复制代码

评分

参与人数 2星屑 +120 +1 收起 理由
正太君 + 120 认可答案
coolala222 + 1 塞糖

查看全部评分

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-2-5 22:11

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表