transform

package
v0.0.0-...-ed1255c Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRotateLinker

func NewRotateLinker(opts RotateOptions) (graph.Linker, error)

func NewScaleLinker

func NewScaleLinker(opts ScaleOptions) (graph.Linker, error)

func NewTransformLinker

func NewTransformLinker(opts TransformOptions) (graph.Linker, error)

func NewTranslateLinker

func NewTranslateLinker(opts TranslateOptions) (graph.Linker, error)

Types

type Operator

type Operator int
const (
	FlipHOperator Operator = iota
	FlipVOperator
	// FlipH + Rotate270
	TransposeOperator
	// FlipV + Rotate270
	TransverseOperator
	Rotate90Operator
	Rotate180Operator
	Rotate270Operator
)

func (Operator) MarshalJSON

func (o Operator) MarshalJSON() (b []byte, err error)

func (*Operator) UnmarshalJSON

func (o *Operator) UnmarshalJSON(b []byte) (err error)

type Rotate

type Rotate struct {
	base.Node
	// contains filtered or unexported fields
}

func (Rotate) Process

func (n Rotate) Process(wd graph.WalkData, buffers map[graph.ConnectorName]drawgl.Result, output chan<- drawgl.Result)

type RotateOptions

type RotateOptions struct {
	Degrees       float64
	Center        [2]int
	CenterPercent [2]float64
	Interpolator  string
	Channel       drawgl.Channel
	Mask          drawgl.Mask
	Linear        bool
}

type Scale

type Scale struct {
	base.Node
	// contains filtered or unexported fields
}

func (Scale) Process

func (n Scale) Process(wd graph.WalkData, buffers map[graph.ConnectorName]drawgl.Result, output chan<- drawgl.Result)

type ScaleOptions

type ScaleOptions struct {
	Width, Height               int
	WidthPercent, HeightPercent float64
	Crop                        bool
	Interpolator                string
	Channel                     drawgl.Channel
	Mask                        drawgl.Mask
	Linear                      bool
}

type Transform

type Transform struct {
	base.Node
	// contains filtered or unexported fields
}

func (Transform) Process

func (n Transform) Process(wd graph.WalkData, buffers map[graph.ConnectorName]drawgl.Result, output chan<- drawgl.Result)

type TransformOptions

type TransformOptions struct {
	Operator Operator
	Channel  drawgl.Channel
	Mask     drawgl.Mask
	Linear   bool
}

type Translate

type Translate struct {
	base.Node
	// contains filtered or unexported fields
}

func (Translate) Process

func (n Translate) Process(wd graph.WalkData, buffers map[graph.ConnectorName]drawgl.Result, output chan<- drawgl.Result)

type TranslateOptions

type TranslateOptions struct {
	Offset        [2]int
	OffsetPercent [2]float64
	Interpolator  string
	Channel       drawgl.Channel
	Mask          drawgl.Mask
	Linear        bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL