xdraw

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: 3 Imported by: 0

Documentation

Overview

Package xdraw implements x/draw image resizer. golang.org/x/image/draw

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XDraw

type XDraw struct {
}

XDraw is the base xdraw type.

func NewXDraw

func NewXDraw() (*XDraw, error)

NewXDraw returns new nfnt struct.

func (XDraw) Crop

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

Crop implements crop interface method.

func (XDraw) Resize

func (n XDraw) 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