gg_img

package
v0.2.50 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

README

IMG

Utilities to manipulate images

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageHelper

type ImageHelper struct {
	Icns *icns.IcnsHelper
}
var Images *ImageHelper

func (*ImageHelper) Resize

func (instance *ImageHelper) Resize(width, height uint, img image.Image, interp resize.InterpolationFunction) image.Image

Resize scales an image to new width and height using the interpolation function interp. A new image with the given dimensions will be returned. If one of the parameters width or height is set to 0, its size will be calculated so that the aspect ratio is that of the originating image. The resizing algorithm uses channels for parallel computation. If the input image has width or height of 0, it is returned unchanged.

func (*ImageHelper) Thumbnail

func (instance *ImageHelper) Thumbnail(maxWidth, maxHeight uint, img image.Image, interp resize.InterpolationFunction) image.Image

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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