image_buffer.h File Reference

Image_Buffer Abstract Widget. More...

#include "ntw.h"

Go to the source code of this file.

Functions

ntwWidget * ntw_image_buffer_new_from_file (char *filename)
 Create image buffer.


Detailed Description

Image_Buffer Abstract Widget.

The image_buffer is an abstract widget which is used to create other widgets. For an image_buffer, the image data is cached on disk on the client side, so creating many of the same image from a buffer is much faster than sending the data over the network each time.

The image_buffer and cached_image are the only way to include an image in a list or tree model.

When in doubt, use an image_buffer to create an image rather than creating the image directly from a file.


Function Documentation

ntwWidget* ntw_image_buffer_new_from_file char *  filename  ) 
 

Create image buffer.

Parameters:
filename Image file to use. Many formats are supported, but JPEG and PNG are recommended
Returns:
Newly created image buffer


Generated on Wed Jun 28 17:00:07 2006 for NTW Server C Library by  doxygen 1.4.6