picture

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2015 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RotateImage

func RotateImage(imagePath string, rotation Rotation) error

RotateImage rotates and save the image at its place

Types

type Format

type Format int

Format f

const (
	JPEG Format = iota
	PNG
	GIF
	TIFF
	BMP
)

JPEG

type Picture

type Picture struct {
	// contains filtered or unexported fields
}

Picture the struct for the picture

func Open

func Open(imagePath string) (*Picture, error)

Open returns a picture if it decodes it

func (*Picture) Save

func (pic *Picture) Save(img *image.Image) error

Save the image given

type Rotation

type Rotation int

Rotation is

const (
	Clockwise Rotation = iota
	CounterClockwise
)

Directories

Path Synopsis
Package exif implements ...
Package exif implements ...

Jump to

Keyboard shortcuts

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