imgio

package
v0.0.0-...-f7ef437 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImreadGray

func ImreadGray(path string) (*image.Gray, error)

ImreadGray reads the image from the given path and return a grayscale image. Returns an error if the path is not readable or the specified resource does not exist.

func ImreadGray16

func ImreadGray16(path string) (*image.Gray16, error)

ImreadGray16 reads the image from the given path and return a grayscale16 image. Returns an error if the path is not readable or the specified resource does not exist.

func ImreadRGBA

func ImreadRGBA(path string) (*image.RGBA, error)

ImreadRGBA reads the image from the given path and return a RGBA image. Returns an error if the path is not readable or the specified resource does not exist.

func ImreadRGBA64

func ImreadRGBA64(path string) (*image.RGBA64, error)

ImreadRGBA64 reads the image from the given path and return a RGBA64 image. Returns an error if the path is not readable or the specified resource does not exist.

func Imwrite

func Imwrite(img image.Image, path string) error

Imwrite saves the image under the location specified by the "path" string. Returns an error if the location is not writable.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL