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

Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone

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 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.