Documentation ¶
Index ¶
- Constants
- Variables
- func Encode(w io.Writer, psd *PSD) error
- type AdditionalInfo
- type BlendModeKey
- type BlendingRanges
- type BlendingRangesData
- type Channel
- type Clipping
- type ColorMode
- type ColorModeData
- type GlobalLayerMask
- type Header
- type Image
- type ImageResourceBlock
- type Layer
- type Mask
- type PSD
Constants ¶
Variables ¶
View Source
var ( ErrHeaderFormat = errors.New("psd: invalid header format") ErrHeaderVersion = errors.New("psd: invalid header version") ErrHeaderChannels = errors.New("psd: invalid header channels") ErrHeaderHeight = errors.New("psd: invalid header height") ErrHeaderWidth = errors.New("psd: invalid header width") ErrHeaderDepth = errors.New("psd: invalid header depth") ErrHeaderColorMode = errors.New("psd: invalid header colorMode") )
header error
View Source
var (
ErrColorModeData = errors.New("psd: invalid color mode data")
)
View Source
var (
ErrImageResourceBlock = errors.New("psd: invalid image resource block")
)
Functions ¶
Types ¶
type AdditionalInfo ¶
type BlendModeKey ¶
type BlendModeKey string
func (BlendModeKey) String ¶
func (b BlendModeKey) String() string
type BlendingRanges ¶
type BlendingRanges struct { CompositeGrayBlend *BlendingRangesData Channels []*BlendingRangesData }
type BlendingRangesData ¶
type ColorModeData ¶
type ColorModeData struct {
Data []byte
}
type GlobalLayerMask ¶
type ImageResourceBlock ¶
type Layer ¶
type Layer struct { Index int ID int LegacyName string Name string Rect image.Rectangle Image image.Image Channels []*Channel BlendModeKey BlendModeKey Opacity int Clipping Clipping Flags byte Filler byte TransparencyProtected bool Visible bool Obsolete bool IrrelevantPixelData bool Mask *Mask BlendingRanges *BlendingRanges AdditionalInfos []*AdditionalInfo }
type PSD ¶
type PSD struct { Header *Header ColorModeData *ColorModeData ImageResources []*ImageResourceBlock Layers []*Layer GlobalLayerMask *GlobalLayerMask AdditionalInfos []*AdditionalInfo Image image.Image }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.