photoLayouts

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 10 Imported by: 0

README

photo-layouts

a simple photo layout program

License

MIT

Documentation

Index

Constants

View Source
const INCH float64 = 25.4

Variables

This section is empty.

Functions

func ConverMmToPx

func ConverMmToPx(dpi, mm float64) (px float64)

func Layout

func Layout(p *Photo) (string, error)

func ParseHexColor

func ParseHexColor(hexColor string) (c color.RGBA, err error)

Types

type Photo

type Photo struct {
	File            string
	LayoutFile      string
	ContainerWidth  float64
	ContainerHeight float64
	PhotoWidth      float64
	PhotoHeight     float64
	Color           string
	Dpi             float64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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