Name

Image —

This widget displays an image.

Synopsis

imageGetPixbuf:: Image -> IO Pixbuf
imageNewFromFile:: FilePath -> IO Image
imageNewFromPixbuf:: Pixbuf -> IO Image
imageNewFromStock:: String -> IconSize -> IO Image

Introduction

Because Haskell is not the best language to modify large images directly only functions are bound that allow loading images from disc or by stock names.

Another function for extracting the Pixbuf is added for CellRenderer.

Todo

Figure out what other functions are useful within Haskell. Maybe we should support loading Pixmaps without exposing them.

Methods

imageGetPixbuf

Extract the Pixbuf from the Image.

imageGetPixbuf:: Image:: IO Pixbuf
img

imageNewFromFile

Create an image by loading a file.

imageNewFromFile:: FilePath:: IO Image
path

imageNewFromPixbuf

Create an Image from a Pixbuf.

imageNewFromPixbuf:: Pixbuf:: IO Image
pbuf

imageNewFromStock

Create a set of images by specifying a stock object.

imageNewFromStock:: String:: IconSize:: IO Image
stockic