colormode

package
v0.0.0-...-e22344b Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Length      uint32
	Data        uint32
	Palette     []uint16
	DuotoneData []byte
}

Data contains data related to the files colors mode

Only really important when the color mode is set to "Indexed" or "Duotone"

func NewData

func NewData() *Data

NewData creates a new ColorMode struct and returns a pointer to it

func (*Data) Parse

func (cm *Data) Parse(file *os.File, colorMode string)

Parse interprets the colormode data in the file

Only really interesting when color mode in the header is either "Indexed" or "Duotone"

Jump to

Keyboard shortcuts

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