19 lines
233 B
Go
19 lines
233 B
Go
|
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
|
||
|
}
|