Versions in this module Expand all Collapse all v1 v1.0.0 Apr 1, 2017 Changes in this version + type Anchor int + const BottomAnchor + const BottomLeftAnchor + const BottomRightAnchor + const CenterAnchor + const LeftAnchor + const RightAnchor + const TopAnchor + const TopLeftAnchor + const TopRightAnchor + type Filter interface + Bounds func(srcBounds image.Rectangle) (dstBounds image.Rectangle) + Draw func(dst draw.Image, src image.Image, options *Options) + func Brightness(percentage float32) Filter + func ColorBalance(percentageRed, percentageGreen, percentageBlue float32) Filter + func ColorFunc(fn func(r0, g0, b0, a0 float32) (r, g, b, a float32)) Filter + func Colorize(hue, saturation, percentage float32) Filter + func ColorspaceLinearToSRGB() Filter + func ColorspaceSRGBToLinear() Filter + func Contrast(percentage float32) Filter + func Convolution(kernel []float32, normalize, alpha, abs bool, delta float32) Filter + func Crop(rect image.Rectangle) Filter + func CropToSize(width, height int, anchor Anchor) Filter + func FlipHorizontal() Filter + func FlipVertical() Filter + func Gamma(gamma float32) Filter + func GaussianBlur(sigma float32) Filter + func Grayscale() Filter + func Hue(shift float32) Filter + func Invert() Filter + func Maximum(ksize int, disk bool) Filter + func Mean(ksize int, disk bool) Filter + func Median(ksize int, disk bool) Filter + func Minimum(ksize int, disk bool) Filter + func Pixelate(size int) Filter + func Resize(width, height int, resampling Resampling) Filter + func ResizeToFill(width, height int, resampling Resampling, anchor Anchor) Filter + func ResizeToFit(width, height int, resampling Resampling) Filter + func Rotate(angle float32, backgroundColor color.Color, interpolation Interpolation) Filter + func Rotate180() Filter + func Rotate270() Filter + func Rotate90() Filter + func Saturation(percentage float32) Filter + func Sepia(percentage float32) Filter + func Sigmoid(midpoint, factor float32) Filter + func Sobel() Filter + func Transpose() Filter + func Transverse() Filter + func UnsharpMask(sigma, amount, thresold float32) Filter + type GIFT struct + Filters []Filter + Options Options + func New(filters ...Filter) *GIFT + func (g *GIFT) Add(filters ...Filter) + func (g *GIFT) Bounds(srcBounds image.Rectangle) (dstBounds image.Rectangle) + func (g *GIFT) Draw(dst draw.Image, src image.Image) + func (g *GIFT) DrawAt(dst draw.Image, src image.Image, pt image.Point, op Operator) + func (g *GIFT) Empty() + func (g *GIFT) Parallelization() bool + func (g *GIFT) SetParallelization(isEnabled bool) + type Interpolation int + const CubicInterpolation + const LinearInterpolation + const NearestNeighborInterpolation + type Operator int + const CopyOperator + const OverOperator + type Options struct + Parallelization bool + type Resampling interface + Kernel func(float32) float32 + Support func() float32 + var BoxResampling Resampling + var CubicResampling Resampling + var LanczosResampling Resampling + var LinearResampling Resampling + var NearestNeighborResampling Resampling