yihui/animation

wish: type option for devices

ugroempi opened this issue · 3 comments

There is a demo for using CairoPNG. It would also be nice to be able to use the type="cairo" option with the devices instead (exists at least for bmp, png, jpeg and tiff).

Best, Ulrike

Where is the demo?

It's demo(use_Cairo) in the package.

Once #135 is merged you should be able to specify a custom 'ani.dev' function that uses the type = "cairo" option i.e. for the "png" device one may do:

ani.dev = function(filename, width, height, res = NA) grDevices::png(filename, width, height, res = res, type = "cairo")