Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
borderColor#3D3D3D
bgColor#F4F4F4
titleColor#3D3D3D
borderWidth0
titleBGColor#3D3D3D
borderStylesolid

ON THIS PAGE

Table of Contents
indent20px

...

Code Block
languagejs
vm = CreateObject("roVideoMode")
sm = vm.GetScreenModes()

sm[0].video_mode="1920x1080x60p"
sm[0].transform = "normal"
sm[0].display_x=0
sm[0].display_y=0
sm[0].enabled=true

sm[1].video_mode="1920x1080x60p"
sm[1].transform = "normal"
sm[1].display_x=0
sm[1].display_y=1100    ' Bezel compensation of 20 pixels
sm[1].enabled=true

sm[2].enabled=false
sm[3].enabled=false

vm.SetScreenModes(sm)

In this case the resulting canvas will be 1920x2180, and full screen video and graphics will display across the whole canvas.

SetMode(mode As String) As Boolean 
Anchor
setmode
setmode

...

Specifies the target video mode of the device the next time it reboots. Once a video mode is specified using SetMode(), it can only be changed by a device reboot.

SetCustomModeline(roString modeline) As roBool

Sets the custom videomode with the supplied modeline (see Applying a Custom Resolution). The custom videomode can then be selected using SetMode.

GetModeForNextBoot() As String

...