ut/utio/imager.go

19 lines
233 B
Go
Raw Permalink Normal View History

package utio
import "image"
// Imager describes a image encoder/decoder.
type Imager interface {
Encoder
Decoder
Image() image.Image
}
type imager struct {
m image.Image
}
func (i *imager) Image() image.Image {
return i.m
}