goss

package module
Version: v0.0.0-...-1972afc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2015 License: MIT Imports: 2 Imported by: 0

README

goss

Go Screenshot Package for OS X

Requirements

  • OS X >= 10.8
  • Go >= 1.4

How to use

image, err := goss.Capture()

or

ss, err := goss.New()
rgba := ss.ToRGBA()

Refs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capture

func Capture() (img image.Image, err error)

Capture method

Types

type Goss

type Goss interface {
	ToImage() image.Image
	ToRGBA() *image.RGBA
}

Goss API

type Screenshot

type Screenshot struct {
	// contains filtered or unexported fields
}

Screenshot structure

func New

func New() (ss *Screenshot, err error)

New constructor

func (*Screenshot) ToImage

func (ss *Screenshot) ToImage() (img image.Image)

ToImage method

func (*Screenshot) ToRGBA

func (ss *Screenshot) ToRGBA() (rgba *image.RGBA)

ToRGBA method

Source Files

Directories

Path Synopsis
examples
gui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL