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

Document DImage transformation #306

Open
robinp opened this issue Dec 24, 2017 · 2 comments
Open

Document DImage transformation #306

robinp opened this issue Dec 24, 2017 · 2 comments

Comments

@robinp
Copy link

robinp commented Dec 24, 2017

In https://archives.haskell.org/projects.haskell.org/diagrams/haddock/Diagrams-TwoD-Image.html, I wanted to prescale the DImage before converting to Diagram with image, so I sticked in the transform in the constructor (it was a simple scalingX <> scalingY).

But that apparently did something strange. I got the desired effect by applying the scaling to the Diagram itself.

Would be nice to document what the Transformation piece of the constructor is for.

@bergey
Copy link
Member

bergey commented Dec 28, 2017 via email

byorgey added a commit that referenced this issue Jan 11, 2018
@byorgey
Copy link
Member

byorgey commented Jan 11, 2018

@bergey I think I agree with you. Does #307 look reasonable to you?

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