func Decode(r io.Reader) (outImage image.Image, err error) {
	if w, h, b, loadErr := load(r); loadErr == nil {
		rect := image.Rect(0, 0, w, h)
		outImage = &image.Paletted{
			Pix:     b,
			Stride:  w,
			Rect:    rect,
			Palette: Palette,
		}
	} else {
		err = loadErr
	}

	return
}
// Decode decodes a LMP image.
Decode decodes a LMP image.
// Decode decodes a LMP image .
func Decode(r io.Reader) (outImage image.Image, err error) {
	if w, h, b, loadErr := load(r); loadErr == nil {
		rect := image.Rect(0, 0, w, h)
		outImage = &image.Paletted{
			Pix:     b,
			Stride:  w,
			Rect:    rect,
			Palette: Palette,
		}
	} else {
		err = loadErr
	}
	return
}
func Decode ( r io . Reader ) ( outImage image . Image , err error ) { if w , h , b , loadErr := load ( r ) ; loadErr == nil { rect := image . Rect ( 0 , 0 , w , h ) outImage = & image . Paletted { Pix : b , Stride : w , Rect : rect , Palette : Palette , } } else { err = loadErr } return }
Decode decodes a LMP image.
Decode decodes a LMP image .