resource

package
v0.0.0-...-8810693 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FORMAT_RAWRGB = iota
	FORMAT_JPEGRGB
)
View Source
const RESOURCE_ID = 0x40C

(Photoshop 5.0) Thumbnail resource (supersedes resource 1033). Hex: 0x040C Dec: 1036 http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_74450

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader, id uint16, length uint32) (interface{}, uint32, error)

Types

type Thumbnail

type Thumbnail struct {
	Format         uint32
	Width          uint32
	Height         uint32
	WidthBytes     uint32 // Padded row bytes
	Size           uint32
	CompressedSize uint32 // After compression
	BitDepth       uint16
	PlaneCount     uint16

	Data []byte
}

func (*Thumbnail) Image

func (t *Thumbnail) Image() (image.Image, error)

func (*Thumbnail) String

func (t *Thumbnail) String() string

Jump to

Keyboard shortcuts

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