Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wish: type option for devices #112

Open
ugroempi opened this issue Feb 11, 2018 · 3 comments
Open

wish: type option for devices #112

ugroempi opened this issue Feb 11, 2018 · 3 comments

Comments

@ugroempi
Copy link

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

@yulijia
Copy link
Collaborator

yulijia commented Feb 11, 2018

Where is the demo?

@ugroempi
Copy link
Author

It's demo(use_Cairo) in the package.

@trevorld
Copy link
Contributor

trevorld commented Jul 20, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants