11. StdBitmap
Prev |  | Next

## 11. StdBitmap

    data Bitmap     -- abstract

    openBitmap :: FilePath -> IO (Maybe Bitmap)
    disposeBitmap :: Bitmap -> IO ()

    getBitmapSize :: Bitmap -> Size
    resizeBitmap :: Size -> Bitmap -> Bitmap

    instance Drawables Bitmap

`openBitmap`

  creates a bitmap from the given file name.

`disposeBitmap`

  Warning:Allways dispose of the bitmap when it is no longer needed.

`getBitmapSize`

  returns the current bitmap size.

`resizeBitmap`

  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.

Prev |  | Next
10. StdPicture | Home | 12. StdProcess