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

Do a better job resizing images #30

Open
byorgey opened this issue May 2, 2013 · 0 comments
Open

Do a better job resizing images #30

byorgey opened this issue May 2, 2013 · 0 comments

Comments

@byorgey
Copy link
Member

byorgey commented May 2, 2013

Instead of calling C.setSourceSurface (https://github.com/diagrams/diagrams-cairo/blob/master/src/Diagrams/Backend/Cairo/Internal.hs#L292) we ought to use withPatternForSurface to create a Pattern first, then apply patternSetFilter to set the Filter (http://hackage.haskell.org/packages/archive/cairo/0.12.4/doc/html/Graphics-Rendering-Cairo.html#t:Filter) to something other than the default. (Is there a best choice or should we make it configurable somehow? Perhaps an attribute?) Then finally we can call setSource with the pattern.

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

No branches or pull requests

1 participant