Discover Packages
github.com/gitcoinco/mattermost-server
Godeps
_workspace
src
code.google.com
p
graphics-go
graphics
interp
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 2, 2015
License: AGPL-3.0, Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package interp implements image interpolation.
An interpolator provides the Interp interface, which can be used
to interpolate a pixel:
c := interp.Bilinear.Interp(src, 1.2, 1.8)
To interpolate a large number of RGBA or Gray pixels, an implementation
may provide a fast-path by implementing the RGBA or Gray interfaces.
i1, ok := i.(interp.RGBA)
if ok {
c := i1.RGBA(src, 1.2, 1.8)
// use c.R, c.G, etc
return
}
c := i.Interp(src, 1.2, 1.8)
// use generic color.Color
Gray is a fast-path interpolation implementation for image.Gray.
Interp interpolates an image's color at fractional co-ordinates.
var Bilinear Interp = bilinear{}
Bilinear implements bilinear interpolation.
RGBA is a fast-path interpolation implementation for image.RGBA.
It is common for an Interp to also implement RGBA.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.