Docs @ Psychtoolbox Wiki : NearestResolution

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

NearestResolution

PsychtoolboxPsychOneliners

res=NearestResolution(screenNumber,[width,height,hz,pixelSize])
res=NearestResolution(screenNumber [,width][,height][,hz][,pixelSize])
res=NearestResolution(screenNumber,desiredRes)

Finds the available screen resolution most similar (in log cartesian space) to that
requested. Any argument that is [] or NaN will be ignored in assessing similarity.
If you specify pixelSize then the returned res will specify pixelSize. Typically
you'll use the returned "res" to set your screen's resolution:

SetResolution('Resolution', screenNumber, res)

Also see SetResolution, ResolutionTest, and Screen Resolution and Resolutions.




Path   Retrieve current version of NearestResolution.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOneliners/NearestResolution.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0895 seconds