prbuf

package
v0.0.0-...-16fa1b9 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_LEN = 127

for RLE of PRBUF

Variables

View Source
var (
	Black = &BW{Black: true}
	White = &BW{Black: false}

	BWModel = color.ModelFunc(bwModel)
)
View Source
var (
	ErrInvalidMagicBytes = errors.New("Magic bytes invalid")
)

Functions

func Decode

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

func DecodeConfig

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

func IsBlack

func IsBlack(c color.Color) bool

Types

type BW

type BW struct {
	Black bool
}

func (*BW) RGBA

func (bw *BW) RGBA() (r, g, b, a uint32)

type ErrPRBUFDecode

type ErrPRBUFDecode struct {
	// contains filtered or unexported fields
}

func (*ErrPRBUFDecode) Error

func (e *ErrPRBUFDecode) Error() string

Jump to

Keyboard shortcuts

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