cbddlp

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

Package cbddlp handle input and output of Chitubox DLP/LCD printables

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter added in v1.0.0

type Formatter struct {
	*pflag.FlagSet

	Version   int // Version of file to use, one of [1,2]
	AntiAlias int // AntiAlias level, one of [1,2,4,8]
}

func NewFormatter added in v1.0.0

func NewFormatter(suffix string) (cf *Formatter)

func (*Formatter) Decode added in v1.0.0

func (cf *Formatter) Decode(file uv3dp.Reader, filesize int64) (printable uv3dp.Printable, err error)

func (*Formatter) Encode added in v1.0.0

func (cf *Formatter) Encode(writer uv3dp.Writer, p uv3dp.Printable) (err error)

Save a uv3dp.Printable in CBD DLP format

type Print added in v1.0.0

type Print struct {
	uv3dp.Print
	// contains filtered or unexported fields
}

func (*Print) LayerExposure added in v1.0.0

func (cbd *Print) LayerExposure(index int) (exposure uv3dp.Exposure)

func (*Print) LayerImage added in v1.0.0

func (cbd *Print) LayerImage(index int) (layerImage *image.Gray)

func (*Print) LayerZ added in v1.0.0

func (cbd *Print) LayerZ(index int) (z float32)

Layer gets a layer - we decode from the RLE on-the fly

Jump to

Keyboard shortcuts

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