How to get number of available screens?
This code shows how to get number of available screen devices on the local machine or local graphics environment. We obtain the number of screens by getting the length of array returned by
This process can produce a
HeadlessException to happen if we try to run this code on a machine that doesn't have a screen device with it.