rsimage

package
v0.0.0-...-81c28c1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Getallsuf

func Getallsuf() []string

Returns all possible suffixes

func Getimgtype

func Getimgtype(iw int, ih int) (int, bool)

Conditionally returns image size type & true if fitting classification TODO refactor

func Mkimgobj

func Mkimgobj(fn string, tags []string, iw int, ih int, szt int, contr string,
	settings rscore.Settings) rscore.Imgobj

func Mkimgsuflist

func Mkimgsuflist(t int) []string

Creates an image suffix slice based on slide type

func Newimagepath

func Newimagepath(ofn string) (string, string)

Returns path of new image file

func Scaleimage

func Scaleimage(i image.Image, isz int, fnp string) (bool, image.Rectangle)

Scaling wrapper for transform()

func Transform

func Transform(i image.Image, t int) (image.Image, bool)

Scales image down to max dimensions allowed, returns true if image was scaled

func Wrimagefile

func Wrimagefile(i image.Image, fnp string) error

Writes image object to file

Types

This section is empty.

Jump to

Keyboard shortcuts

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