Documentation ¶
Index ¶
Constants ¶
View Source
const ScreencastFPS = 30
ScreencastFPS refers to screensharing fps
Variables ¶
View Source
var ( Ratio4to3 = &Resolution{1024, 768} Ratio5to4 = &Resolution{1280, 1024} Ratio3to2 = &Resolution{2160, 1440} Ratio16to10 = &Resolution{1280, 800} Ratio16to9 = &Resolution{1366, 768} Ratio21to9 = &Resolution{2560, 1080} Ratio32to9 = &Resolution{3840, 1080} Ratios = []*Resolution{Ratio4to3, Ratio5to4, Ratio3to2, Ratio16to10, Ratio16to9, Ratio21to9, Ratio32to9} )
A list of supported aspect ratio
Functions ¶
func Screenshot ¶
Screenshot takes a screenshot from all display
Types ¶
type Resolution ¶
type Resolution struct {
Width, Height int
}
Resolution refers to the resolution of one casted display
Click to show internal directories.
Click to hide internal directories.