nfntresizer

package
v0.0.0-...-aa23d93 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package nfntresizer implements the Resizer by using the Resizer package from nfnt

Index

Constants

This section is empty.

Variables

View Source
var InterpolationFunction = resize.Lanczos3

InterpolationFunction is used, when resizing. There are following options:

NearestNeighbor
Bilinear
Bicubic
MitchellNetravali
Lanczos2
Lanczos3

Functions

This section is empty.

Types

type Resizer

type Resizer struct {
}

Resizer is the type, which is implementing the jpg2go.Resizer interface. In the case of the nfntresizer the type is an empty struct.

func (*Resizer) Resize

func (r *Resizer) Resize(img image.Image, s jpg2go.Size) (image.Image, error)

Resize implements the jpg2go.Resizer

Jump to

Keyboard shortcuts

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