util

package
v0.0.0-...-61eedf9 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package util contains utility code for demosntration of go-libwebp.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(name string) (f *os.File)

CreateFile opens specified example file

func GetExFilePath

func GetExFilePath(name string) string

GetExFilePath returns the path of specified example file.

func GetOutFilePath

func GetOutFilePath(name string) string

GetOutFilePath returns the path of specified out file.

func OpenFile

func OpenFile(name string) (io io.Reader)

OpenFile opens specified example file

func ReadFile

func ReadFile(name string) (data []byte)

ReadFile reads and returns data bytes of specified example file.

func ReadPNG

func ReadPNG(name string) (img image.Image)

ReadPNG reads and decodes png data into image.Image

func WritePNG

func WritePNG(img image.Image, name string)

WritePNG encodes and writes image into PNG file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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