shine-0.2.0.3: Declarative graphics for the browser using GHCJS

Copyright(c) Francesco Gazzetta 2016
LicenseMIT
Maintainerfrancygazz@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell98

Graphics.Shine.Image

Description

Handling of external image (.png, .svg and all browser-supported formats).

Synopsis

Documentation

makeImage :: FilePath -> IO ImageData Source #

Makes an image element from an URL

data ImageSize Source #

How big (and how stretched/cropped) the Image is drawn

Constructors

Original

The orizinal size of the image

Stretched Float Float

Scale the image to the given dimensions

Clipped Float Float Float Float

Clip the image from the given coordinates to the given width and height

ClippedStretched Float Float Float Float Float Float

Clip (x,y,width,height) and scale (width, height) the image

Instances
Eq ImageSize Source # 
Instance details

Defined in Graphics.Shine.Image

Show ImageSize Source # 
Instance details

Defined in Graphics.Shine.Image

newtype ImageData Source #

Just a wrapper around the HTMLImageElement type. Needed for the Show instance.

Constructors

ImageData 
Instances
Eq ImageData Source # 
Instance details

Defined in Graphics.Shine.Image

Show ImageData Source # 
Instance details

Defined in Graphics.Shine.Image