watermark

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MaxPixels int64 = 40_000_000

Variables

This section is empty.

Functions

func Apply

func Apply(source, overlay image.Image, offset image.Point) *image.RGBA

func Encode

func Encode(writer io.Writer, source image.Image, format Format) error

Types

type Format

type Format string
const (
	FormatJPEG Format = "jpeg"
	FormatPNG  Format = "png"
)

func Decode

func Decode(path string) (image.Image, Format, error)

Jump to

Keyboard shortcuts

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