lgs

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package lgs handles input and output of Longer Orange 10 print files

Package lgs handles input and output of Longer Orange 10 print files

Package lgs handles input and output of Longer Orange 10 print files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RGB15Decode

func RGB15Decode(bounds image.Rectangle, data []byte) (pic image.Image)

func RGB15Encode

func RGB15Encode(pic image.Image) (data []byte)

func Rle4Decode

func Rle4Decode(data []byte, bounds image.Rectangle) (gi *image.Gray)

func Rle4Encode

func Rle4Encode(pic *image.Gray) (data []byte, err error)

Types

type Formatter

type Formatter struct {
	*pflag.FlagSet
	// contains filtered or unexported fields
}

func NewFormatter

func NewFormatter(suffix string, model int) (f *Formatter)

func (*Formatter) Decode

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

func (*Formatter) Encode

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

type Print

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

func (*Print) LayerImage

func (p *Print) LayerImage(index int) (gi *image.Gray)

Jump to

Keyboard shortcuts

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