goxbm

package module
v0.0.0-...-d190b08 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: GPL-2.0 Imports: 4 Imported by: 2

README

goxbm Travis CI Godoc Reference

goxbm is a library for exporting golang images to the XBM image format.

Documentation

Index

Constants

View Source
const BYTE_SIZE = 8
View Source
const MAX_COL uint32 = 65535

Variables

View Source
var PIX_VALUES []byte

Functions

func Encode

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

func ToRawXBMBytes

func ToRawXBMBytes(img image.Image) []byte

Get the raw bytes of the image in XBM format. Defaults to Big Endian

Types

type CompressionLevel

type CompressionLevel int
const (
	DefaultCompression CompressionLevel = 0
)

type Encoder

type Encoder struct {
	CompressionLevel CompressionLevel
}

Encoder configures encoding XBM images. More information about XBM may be found on Wikipedia: https://en.wikipedia.org/wiki/X_BitMap

func (*Encoder) Encode

func (enc *Encoder) Encode(w io.Writer, img image.Image) error

Encode an image in XBM format. Defaults to Big Endian

Jump to

Keyboard shortcuts

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