image.h File Reference

Image Widget. More...

#include "ntw.h"

Go to the source code of this file.

Functions

ntwWidget * ntw_image_new_from_buffer (ntwWidget *imbuf)
 Create a new image widget from an existing image buffer or cached image.
ntwWidget * ntw_image_new_from_file (char *filename)
 Create a new image widget from a file.


Detailed Description

Image Widget.

The image widget is a widget that displays an image created either from a file or an image buffer. The only difference is that the client saves image buffer data, so many of the same image can be created quickly from a buffer. Also, image buffers can be pre-loaded to the client so that images can later be created without sending the pixel data.
Creating an image from a file is simple, and can be done from many different file types. JPEG and PNG are recommended, however, as other types may not be supported on all machines.


Function Documentation

ntwWidget* ntw_image_new_from_buffer ntwWidget *  imbuf  ) 
 

Create a new image widget from an existing image buffer or cached image.

The buffer data is initialized with ntw_image_buffer_new_from_file() or ntw_cached_image_new_from_file(). This is the preferred method for creating images that will be shown more than once.

Parameters:
imbuf The buffer to create the image from
Returns:
A newly created image widget

ntwWidget* ntw_image_new_from_file char *  filename  ) 
 

Create a new image widget from a file.

Many file types are supported, but JPEG and PNG are recommended. This is the preferred method for creating images that will be used just once.

Parameters:
imbuf The name of the image file
Returns:
A newly created image widget


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