Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMatIsEmpty = errors.New(`mat is empty`)
)
Functions ¶
This section is empty.
Types ¶
type ImageProcessor ¶
type ImageProcessor struct { }
ImageProcessor is a tool to manipulate images
func NewImageProcessor ¶
func NewImageProcessor() *ImageProcessor
NewImageProcessor creates an instance of `ImageProcessor` (image manipulation tool).
func (*ImageProcessor) Resize ¶
func (proc *ImageProcessor) Resize( in io.Reader, out io.Writer, toWidth, toHeight uint, ) (imageFormat imageprocessorcommon.ImageFormat, err error)
Resize reads an image from `in` and writes a resized image to `out` (new image size: `toWidth`x`toHeight`).
It returns image format and (if occured:) an error.
Click to show internal directories.
Click to hide internal directories.