|
| Graphics.UI.Port.Bitmap | | Portability | portable | | Stability | provisional | | Maintainer | ka2_mail@yahoo.com |
|
|
|
|
|
| Description |
| Bitmaps.
|
|
| Synopsis |
|
|
|
|
| Construction |
|
| createBitmap :: Size -> IO Bitmap |
| Create an empty bitmap of a certain size. |
|
| readBitmap :: FilePath -> IO Bitmap |
| Read a bitmap image from a file. Will automatically decode images like JPEG depending
on the platform capabilities. See also getAvailableCodecs. |
|
| writeBitmap :: Bitmap -> FilePath -> String -> IO () |
| Write a bitmap image to file. Can select different formats with the supplied MIME
string. The image type "image/bmp" is always supported. See also getAvailableCodecs. |
|
| Operations |
|
| getBitmapSize :: Bitmap -> IO Size |
| Get the size of a bitmap. |
|
| setBitmapSize :: Bitmap -> Size -> IO () |
| Stretch a bitmap to a different size. |
|
| drawInBitmap :: Bitmap -> (CanvasHandle -> IO a) -> IO a |
| Draw to a bitmap.
The function passed to drawInWindow should be wrapped with withCanvas function. |
|
| Codec's |
|
| getAvailableCodecs :: IO [Codec] |
| Return all available codec's on this platform. |
|
| Produced by Haddock version 0.6 |