imagefile

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

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

Go to latest
Published: Dec 22, 2018 License: ISC Imports: 4 Imported by: 2

README

Go.Farbfeld

Build Status

About

This is Go implementation of farbfeld image format.

It uses Go's image interface, similar to image/png.

Install

go get github.com/hullerob/go.farbfeld

Usage

See examples.

Documentation

Overview

Package farbfeld implements a farbfeld decoder and encoder.

The farbfeld specification can be found at http://git.suckless.org/farbfeld/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader) (image.Image, error)

Decode reads a farbfeld from r and returns it as image.NRGBA64.

func DecodeConfig

func DecodeConfig(r io.Reader) (image.Config, error)

DecodeConfig returns dimensions of farbfeld image.

func Encode

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

Encode writes m to w in farbfeld format. If m is not image.NRGBA64, it will be converted lossily.

Types

This section is empty.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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