op

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorOp

func ColorOp(ops Ctx, col color.NRGBA)

func ImageOp

func ImageOp(ops Ctx, img image.Image)

func MaskOp

func MaskOp(ops Ctx, img image.Image)

func Offset

func Offset(ops Ctx, off image.Point)

func Position

func Position(ops Ctx, c CallOp, off image.Point)

func ScaledImageOp

func ScaledImageOp(ops Ctx, dst image.Rectangle, img image.Image)

Types

type CallOp

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

func (CallOp) Add

func (c CallOp) Add(ops Ctx)

type ClipOp

type ClipOp image.Rectangle

func (ClipOp) Add

func (c ClipOp) Add(ops Ctx)

type Ctx

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

func (*Ctx) Begin

func (o *Ctx) Begin() Ctx

func (*Ctx) End

func (o *Ctx) End() CallOp

type Ops

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

func (*Ops) Draw

func (o *Ops) Draw(dst draw.Image) image.Rectangle

func (*Ops) Reset

func (o *Ops) Reset() Ctx

type TextOp

type TextOp struct {
	Src           image.Image
	Face          font.Face
	Dot           fixed.Point26_6
	Txt           string
	LetterSpacing int
}

func (TextOp) Add

func (t TextOp) Add(ops Ctx)

Jump to

Keyboard shortcuts

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