Maintainer | diagrams-discuss@googlegroups.com |
---|---|
Safe Haskell | None |
Importing external images into diagrams.
Documentation
An external image primitive, representing an image the backend should import from another file when rendering.
Image | |
|
image :: Renderable Image b => FilePath -> Double -> Double -> Diagram b R2Source
Take an external image from the specified file and turn it into a diagram with the specified width and height, centered at the origin. Note that the image's aspect ratio will be preserved; if the specified width and height have a different ratio than the image's aspect ratio, there will be extra space in one dimension.