pngloader

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPngLoader

func RegisterPngLoader()

Register PNG loader that support saving and loading PNG images using Go's image/png package

Types

type PngLoader

type PngLoader struct {
}

func (PngLoader) DescribeImage

func (p PngLoader) DescribeImage(ctx vk.APIContext, kind string, desc *vk.ImageDescription, content []byte)

func (PngLoader) LoadImage

func (p PngLoader) LoadImage(ctx vk.APIContext, kind string, content []byte, buffer *vk.Buffer)

func (PngLoader) SaveImage

func (p PngLoader) SaveImage(ctx vk.APIContext, kind string, desc vk.ImageDescription, buffer *vk.Buffer) []byte

func (PngLoader) SupportsImage

func (p PngLoader) SupportsImage(kind string) (read bool, write bool)

Jump to

Keyboard shortcuts

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