package
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Sep 23, 2016
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package imgio provides basic image file input/output.
Supported image encoding types
Encode writes an image in the specified format.
Usage example:
// Encode an image to a writer in PNG format,
// returns an error if something went wrong
err := Encode(outFile, img, bild.PNG)
Open loads and decodes an image from a file and returns it.
Usage example:
// Encode an image to a writer in PNG format,
// returns an error if something went wrong
img, err := Open("exampleName")
Save creates a file and writes to it an image in the specified format
Usage example:
// Save an image to a file in PNG format,
// returns an error if something went wrong
err := Save("exampleName", img, bild.PNG)
Format is used to identify the image encoding type
Source Files
¶
Click to show internal directories.
Click to hide internal directories.