Documentation ¶
Index ¶
- func Read(r io.Reader, opts ...Option) (types.Image, error)
- func Resize(inputImage types.Image, opts ...Option) (types.Image, error)
- type Layout
- func (i Layout) IsALayout() bool
- func (i Layout) MarshalJSON() ([]byte, error)
- func (i Layout) MarshalText() ([]byte, error)
- func (i Layout) MarshalYAML() (interface{}, error)
- func (i *Layout) Scan(value interface{}) error
- func (i Layout) String() string
- func (i *Layout) UnmarshalJSON(data []byte) error
- func (i *Layout) UnmarshalText(text []byte) error
- func (i *Layout) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (i Layout) Value() (driver.Value, error)
- type Option
- func ChannelLayout(layout Layout) Option
- func Context(ctx context.Context) Option
- func DCTMethod(method string) Option
- func Height(height int) Option
- func KeepAspectRatio(keepAspectRatio bool) Option
- func MaxDimension(dim int) Option
- func Mean(mean [3]float32) Option
- func MeanValue(mean float32) Option
- func MinDimension(dim int) Option
- func Mode(mode types.Mode) Option
- func ResizeAlgorithm(alg types.ResizeAlgorithm) Option
- func ResizeShape(shape []int) Option
- func Resized(height, width int) Option
- func Width(width int) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Layout ¶
type Layout int
func LayoutString ¶
LayoutString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Layout) IsALayout ¶
IsALayout returns "true" if the value is listed in the enum definition. "false" otherwise
func (Layout) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Layout
func (Layout) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for Layout
func (Layout) MarshalYAML ¶
MarshalYAML implements a YAML Marshaler for Layout
func (*Layout) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Layout
func (*Layout) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for Layout
func (*Layout) UnmarshalYAML ¶
UnmarshalYAML implements a YAML Unmarshaler for Layout
type Option ¶
type Option func(o *Options)
func ChannelLayout ¶
func KeepAspectRatio ¶
func MaxDimension ¶
func MinDimension ¶ added in v0.1.1
func ResizeAlgorithm ¶
func ResizeAlgorithm(alg types.ResizeAlgorithm) Option
func ResizeShape ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.