pdf

package
v0.0.0-...-c9e98ae Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2018 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidRange = errors.New("顔の周りの余白が狭すぎます。あなたの顔がもっと内側に写っている写真を使ってください。")

ErrInvalidRange ..

View Source
var ErrUpsideDownFace = errors.New("あごの下のラインが頭のてっぺんのラインより上にありますよ。")

ErrUpsideDownFace ...

Functions

func CreateDoc

func CreateDoc(docSizeName string, ph *photo.Photo, faceInfo *FaceInfo, reqs []*FaceRequest) ([]byte, error)

CreateDoc ...

Types

type Face

type Face struct {
	Image      image.Image
	WidthInMm  float32
	HeightInMm float32
	Width      int
	Height     int
}

Face represents cropped image

func CreateFace

func CreateFace(img image.Image, ph *photo.Photo, info *FaceInfo, req *FaceRequest) (*Face, error)

CreateFace .

type FaceInfo

type FaceInfo struct {
	Center float32
	Top    float32
	Bottom float32
}

FaceInfo ...

type FaceRequest

type FaceRequest struct {
	WidthInMm  float32
	HeightInMm float32
	Count      int
}

FaceRequest ...

Jump to

Keyboard shortcuts

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