crop

package
v0.0.0-...-6905684 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package crop provides functions for cropping an image to a smaller size.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Circle

func Circle(img image.Image, size int, direction utils.Direction) image.Image

Circle crops an Image to a circle. It will use the widest possible width if the given width is negative.

func Square

func Square(img image.Image, size int, direction utils.Direction) image.Image

Square crops an Image to a square. It will use the widest possible width if the given width is negative.

func Triangle

func Triangle(img image.Image, size int, direction utils.Direction) image.Image

Triangle crops an Image to an equilaterla triangle. It will use the widest possible width if the given size is negative.

Types

This section is empty.

Jump to

Keyboard shortcuts

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