|
|
|
|
|
Description |
|
|
Synopsis |
|
|
|
|
Sound
|
|
sound :: FilePath -> Wave () |
Return a managed sound object. The file path points to
a valid sound file, normally a .wav.
|
|
play :: Wave a -> IO () |
Play a sound fragment asynchronously.
|
|
playLoop :: Wave a -> IO () |
Play a sound fragment repeatedly (and asynchronously).
|
|
playWait :: Wave a -> IO () |
Play a sound fragment synchronously (i.e. wait till completion).
|
|
Images
|
|
image :: FilePath -> Image () |
Return a managed image. Images are platform independent representations
of pictures, using an array of rgb pixels. See Graphics.UI.WXCore.Image for
lowlevel pixel manipulation. The file path should point to
a valid image file, like .jpg, .bmp, .xpm, or .png, for example.
Instances: Sized.
|
|
imageCreateFromFile :: String -> IO (Image ()) |
usage: (imageCreateFromFile name).
|
|
imageCreateFromPixels :: Size -> [Color] -> IO (Image ()) |
Create an image from a list of pixels.
|
|
imageGetPixels :: Image a -> IO [Color] |
Get the pixels of an image.
|
|
imageCreateFromPixelArray :: Array Point Color -> IO (Image ()) |
Create an image from a pixel array
|
|
imageGetPixelArray :: Image a -> IO (Array Point Color) |
Get the pixels of an image as an array
|
|
Bitmaps
|
|
bitmap :: FilePath -> Bitmap () |
Return a managed bitmap object. Bitmaps are abstract images used
for drawing to a device context. The file path should point to
a valid bitmap file, normally a .ico, .bmp, .xpm, or .png,
but any file format supported by |Image| is correctly loaded.
Instances: Sized.
|
|
bitmapCreateFromFile :: FilePath -> IO (Bitmap ()) |
Load a bitmap from an image file (gif, jpg, png, etc.)
|
|
bitmapFromImage :: Image a -> IO (Bitmap ()) |
Create a bitmap from an image with the same color depth.
|
|
Produced by Haddock version 0.7 |