Module picto::write [] [src]

Image encoding functions.

Functions

bmp

Write a BMP image to an output stream, with the ability to set the parameters on the encoder.

gif

Write a GIF image to an output stream, with the ability to set the parameters on the encoder.

png

Write a PNG image to an output stream, with the ability to set the parameters on the encoder.

tga

Write a TGA image to an output stream, with the ability to set the parameters on the encoder.

to

Write the buffer to the output stream in PNG format.

to_path

Write the buffer to the given path guessing the format based on the file extension.

with_format

Write the buffer to the output stream using the given format.