paint

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CentimeterToInch

func CentimeterToInch(centi float64) float64

func CentimeterToPixel

func CentimeterToPixel(dpi int, centi float64) int

func CreateJPEG

func CreateJPEG(outputFilename string, canvas image.Image)

func InchToPixel

func InchToPixel(dpi int, maxWidth float64) int

func LoadJPEG

func LoadJPEG(filePath string) image.Image

func LoadPNG

func LoadPNG(filePath string) image.Image

func Resize

func Resize(source image.Image, width uint, height uint) image.Image

func ResizeA

func ResizeA(source image.Image, width uint, height uint, a resize.InterpolationFunction) image.Image

func ResizeToInch

func ResizeToInch(source image.Image, maxWidth float64, maxHeight float64, dpi int) image.Image

func ResizeWithRatio

func ResizeWithRatio(source image.Image, maxWidthPx uint, maxHeightPx uint) image.Image

Types

This section is empty.

Jump to

Keyboard shortcuts

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