ContentsIndex
Graphics.Plot.Image
Description
A helper to load BMP files from disc and cache them in the display state. Uses GL.BMP, and only supports images loadable by it.
Synopsis
cacheImage :: IORef DisplayState -> FilePath -> IO Image
Documentation
cacheImage
:: IORef DisplayStateThe current state
-> FilePathThe path to the image.
-> IO Image
Loads an image from the file system and caches it in the display state. Subsequent calls to cacheImage with the same path will return the previously loaded image.
Produced by Haddock version 0.7