bmp

package
v0.0.0-...-57c1bf3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package bmp implements a BMP image decoder and encoder.

The BMP specification is at http://www.digicamsoft.com/bmp/bmp.html.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("bmp: unsupported BMP image")

ErrUnsupported means that the input BMP image uses a valid but unsupported feature.

Functions

func Decode

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

func Encode(w io.Writer, m image.Image) error

Encode writes the image m to w in BMP format.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL