Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var All = []Enum{ Nearest, Linear, }
All possible values.
Functions ¶
This section is empty.
Types ¶
type Enum ¶
type Enum int32
Enum holds the type of sampling to be done.
const ( Nearest Enum = iota // Single sample point (nearest neighbor) Linear // Interpolate between 2x2 sample points (bilinear interpolation) )
Possible values.
func (Enum) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Enum) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Enum) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.