From: Eric <er...@ma...> - 2009-02-17 18:21:02
|
Arne Vogel wrote: > to answer the first question: You can use, for instance, bitmap, > bitmapCreateFromFile or bitmapFromImage (all Graphics.UI.WX.Media). > > bitmap returns Bitmap () while bitmapCreateFromFile returns IO > (Bitmap ()). > I guess what this means is that bitmap does not require the IO monad but > you have little control over when it's executed. So bitmap should > probably > only be used if the file doesn't change over the lifetime of the > application instance. > Thanks for the info. > To answer the second question: Maybe you could create an empty image. > How do I do that? Eric |