Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongType = errors.New("wrong image type")
ErrWrongType is returned from [Opener].
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image interface {
io.ReaderAt
io.Closer
Type() Type
Size() int64 // -1 if unknown
Readable() error
}
Image implements io.ReaderAt and io.Closer.
type OpenWithType ¶
OpenWithType opens Image with the specified Type. Opener must return ErrWrongType when the image is not parsable with the specified Type.
Click to show internal directories.
Click to hide internal directories.