output

package
v0.0.0-...-cc5a67f Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Overview

Package output implements the file output functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HDR

type HDR struct {
	// contains filtered or unexported fields
}

func NewHDR

func NewHDR(fileName string) (*HDR, error)

NewPNG returns a new PNG output.

func (*HDR) Write

func (p *HDR) Write(i image.Image) error

type Output

type Output interface {
	// Write persists the render data in a specific format.
	Write(i image.Image) error
}

Output handles the output functionality once the render is complete.

type PFM

type PFM struct {
	// contains filtered or unexported fields
}

func NewPFM

func NewPFM(fileName string) (*PFM, error)

NewPFM returns a new PFM output.

func (*PFM) Write

func (p *PFM) Write(i image.Image) error

type PNG

type PNG struct {
	// contains filtered or unexported fields
}

func NewPNG

func NewPNG(fileName string) (*PNG, error)

NewPNG returns a new PNG output.

func (*PNG) Write

func (p *PNG) Write(i image.Image) error

Jump to

Keyboard shortcuts

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