animation icon indicating copy to clipboard operation
animation copied to clipboard

wish: type option for devices

Open ugroempi opened this issue 6 years ago • 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

ugroempi avatar Feb 11 '18 08:02 ugroempi

Where is the demo?

yulijia avatar Feb 11 '18 22:02 yulijia

It's demo(use_Cairo) in the package.

ugroempi avatar Feb 11 '18 22:02 ugroempi

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")

trevorld avatar Jul 20 '21 15:07 trevorld