op

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 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) Clip added in v1.2.0

func (o *Ops) Clip(dst image.Rectangle) image.Rectangle

func (*Ops) Draw

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

func (*Ops) Reset

func (o *Ops) Reset() Ctx

type TextOp

type TextOp struct {
	Src           image.Image
	Face          *bitmap.Face
	Dot           image.Point
	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