Main Menu

ScreenViewPort request

Started by Adaz, February 01, 2007, 04:25:31 AM

Previous topic - Next topic

Adaz

Hello,

Is there a chance to check the actual rendering boundaries of the screen?

thanks

Ádáz

Hungary

kevin

#1
Already can via GetImageViewport, as the screen is IMAGE 0

PlayBASIC Code: [Select]
ScreenViewport 100,50,500,400

Cls 255
SetCursor 100,50
CursorMargin 100
Print GetImageVIewportX1(0)
Print GetImageVIewportY1(0)
Print GetImageVIewportX2(0)
Print GetImageVIewportY2(0)

Sync
Waitkey




  See-> ScreenViewPort in the PlayBASIC documentation



Adaz

Ah, of course! I forgot screen 0 :)
Thank you!

Ádáz

Hungary