cropper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cropper provides an image cropping function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blackout

func Blackout(src image.Image, bounds image.Rectangle) (image.Image, error)

Blackout replaces a given rectangle in the image with a black rectangle. The function may modify the original image.

func Crop

func Crop(src image.Image, bounds image.Rectangle) (image.Image, error)

Crop crops an image to bounds. The cropped image may be a view on the original image or a completely distinct image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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