module Eagle::Codecs

Overview

Pure-Crystal file format encoders and decoders. Image.decode, Image#save, Sound.load and Mesh.load pick the right one for you. Use a codec directly when you need bytes in memory rather than a file.

png = Codecs::PNG.encode(Image.circle(16))
img = Codecs::PNG.decode(png)

Defined in:

eagle/assets/codecs/bmp.cr
eagle/assets/codecs/png.cr
eagle/assets/codecs/qoi.cr
eagle/assets/codecs/zlib.cr
eagle/audio/vorbis.cr
eagle/audio/wav.cr
eagle/graphics3d/mesh.cr