Documentation ¶
Overview ¶
Package bmp implements a BMP image decoder and encoder.
The BMP specification is at http://www.digicamsoft.com/bmp/bmp.html.
Package tiff implements a TIFF image tiffdecoder and encoder.
The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrFormat = errors.New("image: unknown format")
ErrFormat indicates that decoding encountered an unknown format.
var ErrUnsupported = errors.New("bmp: unsupported BMP image")
ErrUnsupported means that the input BMP image uses a valid but unsupported feature.
Functions ¶
func RegisterFormat ¶
RegisterFormat registers an image format for use by Decode. Name is the name of the format, like "jpeg" or "png". Magic is the magic prefix that identifies the format's encoding. The magic string can contain "?" wildcards that each match any one byte. Decode is the function that decodes the encoded image. DecodeSize is the function that decodes just its configuration.
Types ¶
type FormatError ¶
type FormatError string
A FormatError reports that the input is not a valid JPEG.
func (FormatError) Error ¶
func (e FormatError) Error() string
type Size ¶
type Size struct {
Width, Height int
}
func DecodeSize ¶
DecodeSize decodes the dimensions of an image that has been encoded in a registered format. The string returned is the format name used during format registration. Format registration is typically done by an init function in the codec-specific package.
type UnsupportedError ¶
type UnsupportedError string
An UnsupportedError reports that the input uses a valid but unimplemented JPEG feature.
func (UnsupportedError) Error ¶
func (e UnsupportedError) Error() string