Documentation ¶
Index ¶
- Variables
- func Crop(img SubImager) image.Image
- func Difference(img1, img2 *image.Gray) int
- func Encode(w io.Writer, img image.Image, format string, jpgQuality int) error
- func Init()
- func Load(name string) (image.Image, error)
- func Save(name string, img image.Image, format string, jpgQuality int) error
- func Trim(img *image.Gray, index []Coordinate) *image.Gray
- type Coordinate
- type SubImager
Constants ¶
This section is empty.
Variables ¶
View Source
var CoordPool = sync.Pool{ New: func() interface{} { return []Coordinate{} }, }
Functions ¶
func Difference ¶
Types ¶
type Coordinate ¶
type Coordinate struct {
X, Y int
}
func Optimize ¶
func Optimize(source image.Image, img *image.Gray, index []Coordinate) (*image.Gray, []Coordinate)
Click to show internal directories.
Click to hide internal directories.