Documentation ¶
Index ¶
- func EncodeImage(img *goimage.Paletted, withPrivatePalette bool, ...) []byte
- func FromPng(fileName string, privatePalette bool, compressed, forceTransparency bool) []byte
- func ToPng(fileName string, blockData []byte, palette color.Palette) (result bool)
- func ToTxt(fileName string, holder chunk.BlockProvider) (result bool)
- func ToWavefrontObj(fileName string, blockData []byte, palette color.Palette) (result bool)
- type Text
- type TextEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeImage ¶
func EncodeImage(img *goimage.Paletted, withPrivatePalette bool, compressed, forceTransparency bool) []byte
EncodeImage takes a paletted image and encodes it as a block.
func ToPng ¶
ToPng extracts a bitmap from given block data and saves it to a file. The given palette is used should the bitmap not have a private palette.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.