image

package
v0.0.0-...-3f89074 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearRGBA

func ClearRGBA(img *image.RGBA, rect image.Rectangle)

func CropRGBA

func CropRGBA(src *image.RGBA, rect image.Rectangle) *image.RGBA

func HexToRGBA

func HexToRGBA(hex uint32) color.RGBA

Types

type Frame

type Frame struct {
	X      int
	Y      int
	Width  int
	Height int
}

func (*Frame) Equals

func (f *Frame) Equals(other Frame) bool

type Point

type Point struct {
	X int
	Y int
}

func ImageSearch

func ImageSearch(needle *image.RGBA, haystack *image.RGBA, options *SearchOptions) ([]Point, error)

type ScreenFrame

type ScreenFrame struct {
	Frame
	Scale float32
}

type SearchOptions

type SearchOptions struct {
	BoundStart      *Point
	BoundEnd        *Point
	SearchDirection int
	Variation       int
	Instances       int
}

Jump to

Keyboard shortcuts

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