util

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

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

CreateFile opens specified example file

func OpenFile

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

OpenFile opens specified example file

func ReadFile

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

ReadFile reads and returns data bytes of specified example file.

func ReadPNG

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

ReadPNG reads and decodes png data into image.Image

func WritePNG

func WritePNG(img image.Image, filePath 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