imgutil

package
v0.0.0-...-d2c143d Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillFromBoundaryPixels

func FillFromBoundaryPixels(img image.Image, df *sdf.DisplacementField) image.Image

FillFromBoundaryPixels returns an image where off-surface pixels are sourced from the nearest boundary pixels. Effectively extruding the boundary pixels out to the borders of the image.

func Load

func Load(path string) image.Image

Load will load an image from file

func SaveGIF

func SaveGIF(path string, frames []image.Image, delay int)

SaveGIF returns an animated GIF given a series of frames

func SavePNG

func SavePNG(path string, img image.Image)

SavePNG will save an image to a PNG file

Types

type BlendedImage

type BlendedImage struct {
	From  image.Image
	To    image.Image
	Ratio float64
}

BlendedImage is an Image that tweens between two images according to its Ratio

func (*BlendedImage) At

func (img *BlendedImage) At(x, y int) color.Color

At implements image.Image's At(int, int) for BlendedImage

func (*BlendedImage) Bounds

func (img *BlendedImage) Bounds() image.Rectangle

Bounds implements image.Image's Bounds() for BlendedImage

func (*BlendedImage) ColorModel

func (img *BlendedImage) ColorModel() color.Model

ColorModel implements image.Image's ColorModel() for BlendedImage

Jump to

Keyboard shortcuts

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