package bmp
import "golang.org/x/image/bmp"
Package bmp implements a BMP image decoder and encoder.
The BMP specification is at http://www.digicamsoft.com/bmp/bmp.html.
Index ¶
- Variables
- func Decode(r io.Reader) (image.Image, error)
- func DecodeConfig(r io.Reader) (image.Config, error)
- func Encode(w io.Writer, m image.Image) error
Variables ¶
ErrUnsupported means that the input BMP image uses a valid but unsupported feature.
Functions ¶
func Decode ¶
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 ¶
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 ¶
Encode writes the image m to w in BMP format.
Source Files ¶
reader.go writer.go
- Version
- v0.24.0 (latest)
- Published
- Feb 4, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 12 hours ago –
Tools for package owners.