#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. |
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.
|
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.
|
|
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.
|