Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Command string `default:"spectacle -m -b -n -o {{.Output}} -d 0 -p" help:"command to run to get a png stored in {{.Output}}"` JPEGQuality int `default:"1" help:"jpeg quality, 1 to 100, higher is better"` MaxWidth int `default:"200" help:"max width for screenshot"` Greyscale bool `default:"false" help:"if true, convert image to greyscale"` }
type ScreenshotSource ¶
type ScreenshotSource struct {
// contains filtered or unexported fields
}
func NewSource ¶
func NewSource(cfg Config) (*ScreenshotSource, error)
func (*ScreenshotSource) Screenshot ¶
func (s *ScreenshotSource) Screenshot(ctx context.Context) (*utils.SerializedImage, error)
Click to show internal directories.
Click to hide internal directories.