pcx

package
v0.0.0-...-6a5ce4d Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: BSD-3-Clause Imports: 6 Imported by: 6

Documentation

Overview

Package pcx implements a PCX image decoder and encoder.

Specification: http://web.archive.org/web/20030111010058/http://www.nist.fss.ru/hr/doc/spec/pcx.htm

Sample files: http://samples.ffmpeg.org/image-samples/pcx/

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 PCX image from r and returns it as an image.Image. The type of Image returned depends on the PCX contents.

func DecodeConfig

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

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

func Encode

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

Encode writes the Image m to w in PCX format.

Types

type FormatError

type FormatError string

A FormatError reports that the input is not a valid PCX.

func (FormatError) Error

func (e FormatError) Error() string

type UnsupportedError

type UnsupportedError string

An UnsupportedError reports that the input uses a valid but unimplemented PCX feature.

func (UnsupportedError) Error

func (e UnsupportedError) Error() string

Jump to

Keyboard shortcuts

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