|  | Source code | Contents | Index

Graphics.UI.ObjectIO.StdBitmap |

Portability | portable
Stability | provisional
Maintainer | ka2_mail@yahoo.com

Description
Interface functions for drawing bitmaps.
Synopsis

type Bitmap = OSBitmap
openBitmap :: IOMonad m => FilePath -> m (Maybe Bitmap)
disposeBitmap :: IOMonad m => Bitmap -> m ()
getBitmapSize :: Bitmap -> Size
resizeBitmap :: Size -> Bitmap -> Bitmap

Documentation
type Bitmap = OSBitmap
An abstract type which represent the bitmap. There is instance of `Drawables` class
openBitmap :: IOMonad m => FilePath -> m (Maybe Bitmap)
creates a bitmap from the given file name
disposeBitmap :: IOMonad m => Bitmap -> m ()
Warning: Allways dispose of the bitmap when it is no longer needed
getBitmapSize :: Bitmap -> Size
returns the current bitmap size
resizeBitmap :: Size -> Bitmap -> Bitmap
resizes the bitmap. The resizing of the bitmap affects only the data that is in the memory. The visual effect will appear when the bitmap is displayed
Produced by Haddock version 0.8