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
Click to show internal directories.
Click to hide internal directories.