package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev

# Functions

Copy copies the part of the source image defined by src and sr and writes the result of a Porter-Duff composition to the part of the destination image defined by dst and the translation of sr so that sr.Min translates to dp.
Draw calls DrawMask with a nil mask.
DrawMask aligns r.Min in dst with sp in src and mp in mask and then replaces the rectangle r in dst with the result of a Porter-Duff composition.

# Constants

Over specifies ``(src in mask) over dst''.
Src specifies ``src in mask''.

# Variables

ApproxBiLinear is a mixture of the nearest neighbor and bi-linear interpolators.
BiLinear is the tent kernel.
CatmullRom is the Catmull-Rom kernel.
FloydSteinberg is a Drawer that is the Src Op with Floyd-Steinberg error diffusion.
NearestNeighbor is the nearest neighbor interpolator.

# Structs

Kernel is an interpolator that blends source pixels weighted by a symmetric kernel function.
Options are optional parameters to Copy, Scale and Transform.

# Interfaces

Drawer contains the Draw method.
Image is an image.Image with a Set method to change a single pixel.
Interpolator is an interpolation algorithm, when dst and src pixels don't have a 1:1 correspondence.
Quantizer produces a palette for an image.
Scaler scales the part of the source image defined by src and sr and writes the result of a Porter-Duff composition to the part of the destination image defined by dst and dr.
Transformer transforms the part of the source image defined by src and sr and writes the result of a Porter-Duff composition to the part of the destination image defined by dst and the affine transform m applied to sr.

# Type aliases

Op is a Porter-Duff compositing operator.