psp

package
v0.0.0-...-9afc434 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: 12 Imported by: 0

Documentation

Overview

Package psp implements a Paint Shop Pro image decoder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

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

Decode reads a PSP image from r and returns it as an image.Image. The type of Image returned depends on the PSP contents.

func DecodeConfig

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

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

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 variant of the PCX file is not supported.

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