Type Options

type Options struct {
	// Scale is device pixels per logical pixel in screenshots. The default, 2,
	// matches a Retina display; use 1 to see how a standard display renders.
	Scale float64
	// ReferenceText lays the application out with the reference text metrics
	// (internal/textmetrics): the same widths on every platform, whatever fonts are
	// installed, for a test or a tool that compares layouts across machines. By
	// default a session measures with the platform's text engine, as a window does
	// through that engine, so a screenshot shows the layout the window would have.
	ReferenceText bool
}

Options configures a Session.