types

package
v1.8.19 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormatExts = map[string]Format{
	"jpg":  JPEG,
	"jpeg": JPEG,
	"png":  PNG,
	"gif":  GIF,
	"tif":  TIFF,
	"tiff": TIFF,
	"webp": WEBP,
	"bmp":  BMP,
	"pbm":  PBM,
	"pgm":  PGM,
	"ppm":  PPM,
	"pam":  PAM,
}

Functions

This section is empty.

Types

type Format

type Format int

Format is an image file format.

const (
	UNKNOWN Format = iota
	JPEG
	PNG
	GIF
	TIFF
	WEBP
	BMP
	PBM
	PGM
	PPM
	PAM
)

Image file formats.

func (Format) MarshalJSON added in v1.8.3

func (s Format) MarshalJSON() ([]byte, error)

func (Format) String

func (f Format) String() string

func (*Format) UnmarshalJSON added in v1.8.3

func (s *Format) UnmarshalJSON(data []byte) error

type Input added in v1.8.6

type Input struct {
	Reader io.Reader
	Path   string
}

type Scanner

type Scanner interface {
	Scan(x1, y1, x2, y2 int, dst []uint8)
	ScanRow(x1, y1, x2, y2 int, img image.Image, row int)
	Bytes_per_channel() int
	Num_of_channels() int
	Bounds() image.Rectangle
	ReverseRow(image.Image, int)
	NewImage(r image.Rectangle) image.Image
}

type TransformType added in v1.8.6

type TransformType int
const (
	NoTransform TransformType = iota
	FlipHTransform
	FlipVTransform
	Rotate90Transform
	Rotate180Transform
	Rotate270Transform
	TransverseTransform
	TransposeTransform
)

Jump to

Keyboard shortcuts

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