Skip to content

Graphic Devices

ragg provides several devices. They all share the same underlying rendering code, so the only difference is in their output formats.

agg_png()
Draw to a PNG file
agg_jpeg()
Draw to a JPEG file
agg_tiff()
Draw to a TIFF file
agg_webp()
Draw to a WebP file
agg_webp_anim()
Draw an animation to a WebP file
agg_capture()
Draw to a buffer that can be accessed directly
agg_ppm()
Draw to a PPM file
agg_record()
Capture drawing instructions without rendering