text

package
v0.0.0-...-03d6fc4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

text is an image plain text file format encoder and decoder.

A super simple format of the form:

! SKTEXTSIMPLE width height 0x000000ff 0xffffffff ... 0xddddddff 0xffffff88 ... ...

Where the pixel values are encoded as 0xRRGGBBAA.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

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

Decode reads an SKTEXT image from r and returns it as an image.Image. The type of Image returned will always be NRGBA.

func DecodeConfig

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

DecodeConfig returns the color model and dimensions of SKTEXT image without decoding the entire image.

func Encode

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

Encode encoded the image in SKTEXT format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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