nfntcrop

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package nfntcrop implements nfnt image resizer. https://github.com/nfnt/resize crop is implemented by Eugene Klimov

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NfNtCrop

type NfNtCrop struct {
}

NfNtCrop is the base nfnt type.

func NewNfNtCrop

func NewNfNtCrop() (*NfNtCrop, error)

NewNfNtCrop returns new nfnt struct.

func (NfNtCrop) Crop

func (n NfNtCrop) Crop(
	width, height int, anchor image.Point,
	img image.Image) image.Image

Crop implements crop interface method.

func (NfNtCrop) Resize

func (n NfNtCrop) Resize(
	width, height int, img image.Image,
	opts entities.ResizeOptions) image.Image

Resize implements resize interface method.

Jump to

Keyboard shortcuts

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