Versions in this module Expand all Collapse all v1 v1.2.13 Feb 20, 2022 v1.2.12 Feb 20, 2022 Changes in this version + const SliceFormatPW0 + const SliceFormatPWS + type Filemark struct + AreaNum uint32 + HeaderAddr uint32 + LayerDefAddr uint32 + LayerImageAddr uint32 + Mark [12]byte + PreviewAddr uint32 + Version uint32 + type Format struct + AntiAlias int + func NewFormatter(suffix string) (sf *Format) + func (sf *Format) Decode(reader uv3dp.Reader, filesize int64) (printable uv3dp.Printable, err error) + func (sf *Format) Encode(writer uv3dp.Writer, printable uv3dp.Printable) (err error) + type Header struct + AntiAlias uint32 + BottomLayers float32 + BottomLightOnTime float32 + LayerHeight float32 + LiftHeight float32 + LiftSpeed float32 + LightOffTime float32 + LightOnTime float32 + PerLayerOverride uint32 + PixelSize float32 + Price float32 + ResinType uint32 + ResolutionX uint32 + ResolutionY uint32 + RetractSpeed float32 + Volume float32 + Weight float32 + func (header *Header) Marshal(offset uint32) (data []byte, err error) + func (header *Header) Unmarshal(raw []byte) (err error) + type Layer struct + ImageAddr uint32 + ImageLength uint32 + LayerHeight float32 + LiftHeight float32 + LiftSpeed float32 + LightOnTime float32 + type LayerDef struct + Layer []Layer + Layers uint32 + func (layerdef *LayerDef) Marshal(offset uint32) (data []byte, err error) + func (layerdef *LayerDef) Unmarshal(data []byte) (err error) + type Preview struct + Height uint32 + Resolution uint32 + Width uint32 + func (preview *Preview) GetImage() (preview_image *image.RGBA, err error) + func (preview *Preview) Marshal(offset uint32) (data []byte, err error) + func (preview *Preview) SetImage(preview_image image.Image) + func (preview *Preview) Unmarshal(raw []byte) (err error) + type Print struct + func (pws *Print) Image(index int) (slice *image.Gray) + func (pws *Print) LayerExposure(index int) (exposure uv3dp.Exposure) + func (sf *Print) Close() + type Section struct + Length uint32 + Mark [12]byte + func (sec *Section) Marshal(from interface{}, raw []byte) (data []byte, err error) + func (sec *Section) Unmarshal(raw []byte, into interface{}) (data []byte, err error) + type Slice struct + AntiAlias int + Bounds image.Rectangle + Data []byte + Format SliceFormat + func (slice *Slice) GetImage() (gray *image.Gray, err error) + func (slice *Slice) SetImage(gray *image.Gray) (err error) + type SliceFormat int