Documentation
¶
Index ¶
- func Read(r io.Reader, opts ...Option) (types.Image, error)
- func Resize(inputImage types.Image, opts ...Option) (types.Image, error)
- type Layout
- 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 Mode(mode types.Mode) Option
- func ResizeAlgorithm(alg types.ResizeAlgorithm) 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 Option ¶
type Option func(o *Options)
func ChannelLayout ¶
func KeepAspectRatio ¶
func MaxDimension ¶
func ResizeAlgorithm ¶
func ResizeAlgorithm(alg types.ResizeAlgorithm) Option
Click to show internal directories.
Click to hide internal directories.