types

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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