diagrams-lib-1.1.0.7: Embedded domain-specific language for declarative graphics

Copyright(c) 2011 diagrams-lib team (see LICENSE)
LicenseBSD-style (see LICENSE)
Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone
LanguageHaskell2010

Diagrams.TwoD.Image

Description

Importing external images into diagrams.

Synopsis

Documentation

data Image Source

An external image primitive, representing an image the backend should import from another file when rendering.

Constructors

Image 

image :: Renderable Image b => FilePath -> Double -> Double -> Diagram b R2 Source

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.