imageresource

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: 23 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
	ResolutionInfo   *resolutioninfo.Resolutioninfo
	BackgroundColor  *backgroundcolor.BackgroundColor
	PrintFlags       *printflags.PrintFlags
	Thumbnail        *thumbnail.Thumbnail
	Angle            *angle.Angle
	ICCProfile       *icc.ICCProfile
	ID               *id.ID
	UnicodeString    *unicode.UnicodeString
	Altitude         *altitude.Altitude
	Slice            *slice.Slice
	Version          *version.Version
	Exif             *exif.Exif
	XMP              *xmp.XMP
	Digest           *sec.Sec
	Printscale       *printscale.PrintScale
	Pixelaspectratio *pixelaspectratio.PixelAspectRatio
	MeasurementSacle *measurementscale.MeasurementScale
	Descriptor       *descriptor.Descriptor
	PrintFlagInfo    *printflaginfo.PrintFlagInfo
}

Data contains the resource blocks used by the photoshop file and the length of the section in the photoshop file

func NewData

func NewData() *Data

NewData creates a new ImageResources struct and returns a pointer to it. This exists so the top level pisdui struct can create one to prevent import cycles

func (*Data) Parse

func (resourceBlockSection *Data) Parse(file *os.File) error

Parse will read all image resources located in the photoshop file and will read them into the ImageResources struct

type ResourceBlock

type ResourceBlock struct {
	Signature           string
	ID                  uint16
	PascalString        string
	DataSize            uint32
	ParsedResourceBlock parsedResourceBlock
}

ResourceBlock contains the raw unparsed data from a resource block in the photoshop file

Jump to

Keyboard shortcuts

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