pisdui

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsError

func ContainsError(errors []error) bool

thanks go for not having generics and making me do this

Types

type PSD

type PSD struct {
	Fp             *os.File
	Header         *header.Data
	ColorModeData  *colormode.Data
	ImageResources *imageresource.Data
	LayerMaskInfo  *layerandmask.Data
	ImageData      *imagedata.Data
}

PSD contains all parsed data from the photoshop file

func NewPSD

func NewPSD(path string) (*PSD, error)

NewPSD creates a new PSD struct to read the file pointer into and the data read from the photoshop file

func (*PSD) Parse

func (psd *PSD) Parse() []error

Parse takes the loaded file and parses it into usable structs separated into the different main parts of the file

func (*PSD) SaveNew

func (psd *PSD) SaveNew(path string) error

SaveNew saves the current PSD struct to a new .psd file

Jump to

Keyboard shortcuts

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