imggeom

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandAspect

func ExpandAspect(size image.Point, bound image.Point) image.Point

ExpandAspect expands a box to the bounds of another box, maintaining aspect.

func FitAspect

func FitAspect(size, bound image.Point) image.Point

FitAspect expands or shrinks a box to fit maximally within another box, maintaining aspect.

func ShrinkAspect

func ShrinkAspect(size image.Point, bound image.Point) image.Point

ShrinkAspect shrinks a box to fit within another box, maintaining aspect.

Types

This section is empty.

Jump to

Keyboard shortcuts

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