Package bmp implements a BMP image decoder and encoder.
The BMP specification is at http://www.digicamsoft.com/bmp/bmp.html.
Internal call graph ▹
Internal call graph ▾
In the call graph viewer below, each node is a function belonging to this package and its children are the functions it calls—perhaps dynamically.
The root nodes are the entry points of the package: functions that may be called from outside the package. There may be non-exported or anonymous functions among them if they are called dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring
Functions may be omitted if they were determined to be unreachable in the particular programs or tests that were analyzed.
ErrUnsupported means that the input BMP image uses a valid but unsupported feature.
var ErrUnsupported = errors.New("bmp: unsupported BMP image")
func Decode(r io.Reader) (image.Image, error)
Decode reads a BMP image from r and returns it as an image.Image. Limitation: The file must be 8, 24 or 32 bits per pixel.
func DecodeConfig ¶
func DecodeConfig(r io.Reader) (image.Config, error)
DecodeConfig returns the color model and dimensions of a BMP image without decoding the entire image. Limitation: The file must be 8, 24 or 32 bits per pixel.
func Encode(w io.Writer, m image.Image) error
Encode writes the image m to w in BMP format.