Log in

View Full Version : Screen width


turbojet
16th July 2012, 04:40
Is there a variable or a way to get one of the screen width in avisynth?

StainlessS
16th July 2012, 04:51
W=width(clip)
W=clip.Width

See clip properties in docs.
http://avisynth.org/mediawiki/Clip_properties

turbojet
16th July 2012, 05:26
That's the input width. I should have clarified 'screen width' as desktop width eg 1680x1050

kypec
16th July 2012, 08:34
That's the input width. I should have clarified 'screen width' as desktop width eg 1680x1050
Avisynth is not GUI so it can't have any idea what screen resolution is used on your desktop. Such information can only be obtained from GUI application that calls Avisynth code like MeGUI, AvsPMod etc.